Dynamics crm 2011 使用BusinessDevelopmentStudio和FetchXML的SSR
我有以下用于定制报告的Fetchxml,以获取所有活动Lead:Dynamics crm 2011 使用BusinessDevelopmentStudio和FetchXML的SSR,dynamics-crm-2011,bids,Dynamics Crm 2011,Bids,我有以下用于定制报告的Fetchxml,以获取所有活动Lead: <fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0"> <entity name="lead" > <attribute name="companyname" /> <attribute name="leadid" /> <attribut
<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="lead" >
<attribute name="companyname" />
<attribute name="leadid" />
<attribute name="gr_totaltraveldays" />
<attribute name="gr_marketvertical" />
<attribute name="leadsourcecode" />
<attribute name="lastname" />
<attribute name="firstname" />
<attribute name="estimatedamount" />
<attribute name="gr_dayssincelastactivity" />
<attribute name="new_numberofattendees" />
<attribute name="ownerid" />
<order descending="false" attribute="ownerid" />
<filter type="and" >
<condition attribute="statecode" value="0" operator="eq" />
</filter>
</entity>
我从CRM 2011中的advancefind
中获得了这个FetchXML
。
当我在报表数据集中使用此FetchXML时,会出现以下错误:
gr\u totaltraveldays
字段就在那里。我查看了数据库中的字段,该字段位于LeadExtensionBase
表中。我在使用FetchXML进行投标时遇到了相同的问题。我收到了错误:“无法为实体“XX”找到属性“XXXX”。请指定有效的查询,然后重试。”但是,该字段存在于实体中,并且已发布
解决方案是在数据源中更改连接字符串,添加组织名称,如下所示:{URL};{组织名称}强>
然后成功了
例如:
您可以在设置-->自定义-->开发人员资源中找到organizationname
问候 检查您的连接字符串。我的报告也有同样的问题。似乎您的连接字符串明确指向了正确的组织。 ;
这应该行得通您是否100%确定您针对的是具有高级查找结果的同一CRM组织?@GuidoPreite是的,我仔细检查了所有内容。LeadExtensionBase表中是否存在
gr_totaltraveldays
的问题?crm 2011中的自定义字段始终位于extension表中,不适用于此。如果不需要获取XML,请尝试编写SQL查询并运行报告。或者通过在SQL中查询gr_totaltraveldays进行测试,并检查它是否通过SQL report创建了问题。是的,这就是我最后所做的:使用SQL查询
,但仍然想知道为什么fetchxml
不起作用。