
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
I have the same question (0)Hi Wilson, You cannot get the required attendees as its a party list and It's a limitation of FetchXML, a solution is to copy the string values of the standard attribute to a custom field (by plugin or with a workflow using a custom activity) and use the custom field