I generated fetchXML in Advanced find, which replicates the "My appointments" form, showing the appointment name, date, status, required attendees etc.
In CRM, the required attendees names show in the form without any additional effort, but the fetchXML that generates this form doesnt return the required attendees. I included the header names.odata.include-annotations="*" but it didnt help like i expected.
Do I need to perform additional steps to get the associated required attendees names (remember the required attendees can be a contact, appointment or other entities).
The fetch generated by CRM is below:
<fetch version="1.0" mapping="logical" distinct="true"> <entity name="appointment"> <attribute name="subject" /> <attribute name="scheduledstart" /> <attribute name="scheduledend" /> <attribute name="regardingobjectid" /> <attribute name="prioritycode" /> <attribute name="instancetypecode" /> <attribute name="location" /> <attribute name="requiredattendees" /> <attribute name="createdon" /> <attribute name="statecode" /> <attribute name="activityid" /> <order attribute="scheduledstart" descending="false" /> <link-entity name="activityparty" from="activityid" to="activityid" alias="ab"> <filter type="and"> <condition attribute="participationtypemask" operator="in"> <value>7</value> <value>9</value> <value>5</value> <value>6</value> <value>8</value> </condition> </filter> </link-entity> </entity> </fetch>
*This post is locked for comments