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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Web API query using $expand and related entities

(0) ShareShare
ReportReport
Posted on by 245

Hi,

Is there a way in Web API to include the related entities in a single query without performing the @data.nextLink, for example if I issue the following request

localhost:5555/.../contacts eq '4200722132'&$expand=mli_contact_accountregistration_registrantaccountid

I want to see the related mli_contact_accountregistration_registrantaccountid records in the payload without issuing another request to the following link

I have the same question (0)
  • Verified answer
    Benjamin Fallar III Profile Picture
    245 on at

    Got it already!

  • Verified answer
    Pankaj Gogoi Profile Picture
    3,177 on at

    Hi Benjamin,

    Good you are able to resolve it. For reference, you can also use the FetchXMLBuilder to generate oData queries from FetchXML

    pastedimage1598348255666v1.png

    Best Regards

    PG

  • kokane Profile Picture
    on at

    Thank you PG.  FetchXMLBuilder  is a good tool.

  • Benjamin Fallar III Profile Picture
    245 on at

    Web API doesn't support INNER join, so instead of using OData filter expression, I used the expression /contacts(guid) and use the $expand

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 74

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans