web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

FetchXML generated from view does not expand related entities

(0) ShareShare
ReportReport
Posted on by

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)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans