2

J'utilise FetchXML dans SSRS 2008 pour créer un rapport à partir de CRM 2011. Je veux avoir des paramètres dans le rapport afin que vous puissiez montrer les enregistrements entre Date de date à date. C'est la requête que j'ai jusqu'ici.Date Paramètres 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> 
    <order attribute="scheduledstart" descending="true" /> 
     </entity> 
</fetch> 

Comment le rendre si je peux filtrer entre les dates?

Merci!

Répondre

5

Je ne sais pas si vous avez accès au client CRM natif, mais la vue avancée Trouver génère rapidement cet échantillon FetchXML:

<filter type="and"> 
    <condition attribute="modifiedon" operator="on-or-after" value="2011-10-04" /> 
    <condition attribute="modifiedon" operator="on-or-before" value="2011-11-13" /> 
</filter> 
+0

Parfait! Merci! –

Questions connexes