Sunday, 17 April 2016

Using "older than" clauses for date and time values in FetchXML Query

The following example shows a FetchXML that finds incidents that are older than 30 minutes.
  1. <fetch>
  2. <entity name="incident">
  3. <attribute name="title" />
  4. <attribute name="ticketnumber" />
  5. <attribute name="createdon" />
  6. <attribute name="incidentid" />
  7. <filter type="and">
  8. <condition attribute="createdon" operator="olderthan-x-minutes" value="30" />
  9. </filter>
  10. </entity>
  11. </fetch>
- See more at: http://msxrmtools.com/fetchxml/reference

No comments:

Post a Comment