J'interroge des données à partir de CRM 2011 en utilisant FetchXML pour générer un rapport dans SSRS 2008. Ma requête fonctionne, mais elle ne retournera pas les enregistrements liés à une entité null. Ceci est ma requête:Retour NULLS dans FetchXML
<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>
Ainsi, par exemple, où il relie le SystemUser ou le contact, si ces enregistrements sont nuls le dossier de nomination ne revient pas. Y a-t-il des retours d'enregistrements même si c'est lié à un null?
Merci!
cette réponse ne fonctionne pas pour moi –