【发布时间】:2015-10-25 18:07:02
【问题描述】:
我正在将 SQL 转换为 FetchXml,以便将 Dynamics CRM 2013 中的现有报表在线迁移到 Dynamics CRM 2015。有一个选项集并遇到了这个问题
不支持“虚拟”属性类型。从查询中删除属性“s_expensetypename”,然后重试。
问题是:如何使用 Fetch Xml CRM 2015 Online 在链接实体中获取选项集标签和值。
这是我的 Fetch XML:
<fetch mapping="logical" version="1.0">
<entity name="new_timereport">
<attribute name="new_timereportid" alias="InvoiceID" />
<attribute name="new_name" alias="Invoice Number" />
<attribute name="new_projectid" alias="ProjectID" />
<attribute name="new_projectidname" alias="Project Name" />
<attribute name="new_customeridname" alias="Customer Name" />
<filter>
<condition attribute="new_timereportid" operator="eq" value="@SubreportParam" />
</filter>
<link-entity name="new_expenses" from="new_expenseid" to="new_timereportid" alias="Y" link-type="outer">
<attribute name="s_expensetype" alias="Expense Type Key" />
<attribute name="s_expensetypename" alias="Expense Type" />
<attribute name="ownerid" alias="ConsultantID" />
<attribute name="owneridname" alias="Consultant" />
<attribute name="new_date" />
<attribute name="new_amount" alias="Amount" />
<attribute name="new_vat" alias="VAT" />
<attribute name="new_total" alias="Total Amount" />
<attribute name="new_name" alias="Description" />
</link-entity>
</entity>
</fetch>
关于如何处理这个问题的任何想法?
非常感谢,
【问题讨论】:
-
使用高级查找先构建查询,然后下载 xml
标签: microsoft-dynamics ssrs-2012 dynamics-crm-online fetchxml dynamics-crm-2015