【发布时间】:2019-08-06 23:34:44
【问题描述】:
我试图通过使用 fetch XML 在 MS 动态中加入“系统视图”和来自同一组织的实体来获取一些记录(基本上我在 ssis 任务中执行此操作) - 如果我尝试加入多个实体,它会起作用或来自同一 ORG 的不同实体。
我不确定“链接实体”部分需要使用什么代码才能将实体链接到系统视图。下面是我尝试锻炼的代码
<fetch version="1.0" output-format = "xml-platform" mapping = "logical" distinct = "true">
<entity name = "Contact">
<attribute name = "address1_line1"/>
<attribute name = "address1_city"/>
<link-entity name="My system View" alias = "msv" to="contactid" from = "new_contactID" link-type="inner">
<attribute name = "Company"/>
</link-entity>
</entity>
</fetch>
问题-而不是使用代码<link-entity name="My system View" alias = "msv" to="contactid" from = "new_contactID" link-type="inner">
需要做什么才能将实体“联系人”链接到系统视图“我的系统视图”?
【问题讨论】:
-
为什么需要系统视图?我的意思是您的最终结果是从相关/链接实体获取记录?为什么不创建一个具有满足所有条件的链接实体的 Fetchxml,您将拥有所有数据。您必须使用 systemview 的任何具体原因?
标签: ssis dynamics-crm ssis-2012 fetchxml