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 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
    Microsoft Employee 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

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 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 137

#2
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans