Dynamics crm 在FetchXML中返回空值

Dynamics crm 在FetchXML中返回空值,dynamics-crm,dynamics-crm-4,dynamics-crm-2011,fetchxml,Dynamics Crm,Dynamics Crm 4,Dynamics Crm 2011,Fetchxml,我正在使用FetchXML查询CRM 2011中的数据,以在SSRS 2008中构建报告。我的查询可以工作,但它不会返回链接到空实体的记录。这是我的疑问: <fetch> <entity name="appointment"> <attribute name="scheduledstart" /> <link-entity name="systemuser" from="systemuserid" to="ow

我正在使用FetchXML查询CRM 2011中的数据,以在SSRS 2008中构建报告。我的查询可以工作,但它不会返回链接到空实体的记录。这是我的疑问:

<fetch>
      <entity name="appointment">
        <attribute name="scheduledstart" />
        <link-entity name="systemuser" from="systemuserid" to="ownerid">
            <attribute name="firstname" alias="ownerFirstName" />
            <attribute name="lastname" alias="ownerLastName" />
        </link-entity>
        <link-entity name="contact" from="contactid" to="new_contactperson">
            <attribute name="parentcustomerid" alias="parentaccount" />
            <attribute name="new_businessunit" alias="businessunit" />
        </link-entity>
        <attribute name="new_contactperson" />
        <attribute name="subject" />
        <attribute name="new_coldernotes" />
    <link-entity name="activityparty" from="activityid" to="activityid">
    <attribute name="participationtypemask" alias="participationtypemask" />
        <filter>
        <condition attribute="participationtypemask" operator="eq" value="9" />
        </filter>
        <link-entity name="systemuser" from="systemuserid" to="partyid">
            <attribute name="fullname" />
        </link-entity>
    </link-entity>
        <filter type="and">
            <condition attribute="scheduledstart" operator="on-or-after" value="@FromDate" />
            <condition attribute="scheduledstart" operator="on-or-before" value="@ToDate" />
        </filter>
      </entity>
</fetch>

例如,当它链接到systemuser或contact时,如果这些记录为null,则约会记录不会返回。即使链接到空值,是否仍有返回记录的方法


谢谢

找到了答案。需要添加链接类型=“外部”