2011-11-16 8 views
3

FetchXML을 사용하여 CRM 2011의 데이터를 쿼리하여 SSRS 2008에서 보고서를 작성합니다. 쿼리가 작동하지만 null 인 엔터티에 연결된 레코드를 반환하지 않습니다. 그래서 예를 들어FetchXML에서 NULL을 반환합니다.

<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> 

, 레코드가 null의 약속 레코드를 반환하지 않는 경우가의 systemuser 또는 연락처로 연결이 내 쿼리입니다. null에 연결된 경우에도 기록을 반환 할 수 있습니까?

감사합니다.

답변

5

알아 냈어. link-type = "outer"를 추가해야합니다.

+0

이 대답은 나를 위해 작동하지 않습니다. –

관련 문제