Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

FetchXML generated from view does not expand related entities

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

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: FetchXML generated from view does not expand related entities

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans