Azure 数据工厂返回 fetchXML 查询中未指定的列

问题描述 投票:0回答:1

使用 Azure 数据工厂将数据移出 Dynamics CRM 我在复制活动中使用 Dataverse 连接器

我这样指定我的 fetchXML

<fetch>
<entity name="account">
    <attribute name="accountid"/>
    <attribute name="name"/>
    <attribute name="createdby"/>
    <attribute name="modifiedby"/>
    <attribute name="createdon"/>
    <attribute name="modifiedon"/>
    <attribute name="ownerid"/>
    <attribute name="transactioncurrencyid"/>
    <attribute name="owningbusinessunit"/>
    <attribute name="emailaddress1"/>
    <attribute name="address1_line1"/>
    <attribute name="address1_postalcode"/>
    <attribute name="address1_city"/>
    <attribute name="address1_country"/>
    <attribute name="msdyn_serviceterritory"/>
    <attribute name="msdyn_workorderinstructions"/>
    <attribute name="exchangerate"/>
    <link-entity name="stringmap" from="attributevalue" to="statecode" link-type="outer" alias="state">
        <attribute name="value" alias="state" />
        <filter type="and">
            <condition attribute="attributename" operator="eq" value="statecode" />
            <condition attribute="langid" operator="eq" value="1033" />
            <condition attribute="objecttypecode" operator="eq" value="1" />
        </filter>
    </link-entity>
    <link-entity name="stringmap" from="attributevalue" to="statuscode" link-type="outer" alias="status">
        <attribute name="value" alias="status" />
        <filter type="and">
            <condition attribute="attributename" operator="eq" value="statuscode" />
            <condition attribute="langid" operator="eq" value="1033" />
            <condition attribute="objecttypecode" operator="eq" value="1" />
        </filter>
    </link-entity>
    <link-entity name="stringmap" from="attributevalue" to="businesstypecode" link-type="outer" alias="businessType">
        <attribute name="value" alias="businessType" />
        <filter type="and">
            <condition attribute="attributename" operator="eq" value="businesstypecode" />
            <condition attribute="langid" operator="eq" value="1033" />
            <condition attribute="objecttypecode" operator="eq" value="1" />
        </filter>
    </link-entity>
    <link-entity name="stringmap" from="attributevalue" to="address1_addresstypecode" link-type="outer" alias="addressType">
        <attribute name="value" alias="addressType" />
        <filter type="and">
            <condition attribute="attributename" operator="eq" value="address1_addresstypecode" />
            <condition attribute="langid" operator="eq" value="1033" />
            <condition attribute="objecttypecode" operator="eq" value="1" />
        </filter>
    </link-entity>
</entity>

这会按预期从服务中提取数据,除非我得到 fetchXML 查询中未指定的列

XrmToolBox 中的 FetchXML 构建器中的相同查询不会返回此额外列

这里有人知道如何避免在结果中出现这个额外的列吗? (它搞乱了我在复制活动中的动态映射)

azure-data-factory microsoft-dynamics fetchxml dataverse
1个回答
0
投票

我也遇到同样的问题。您可以直接指定 json 中的列,这是解决问题的方法,但到目前为止我还没有解决方案。

© www.soinside.com 2019 - 2024. All rights reserved.