Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Error while requesting multiple records with nested expand

(0) ShareShare
ReportReport
Posted on by 5

Hi!

Since last update i've got a problem when i want to retrieve records by Xrm.WebApi.retrieveMultipleRecords. Formerly this call here worked fine for me

Xrm.WebApi.retrieveMultipleRecords("account", "?$filter=accountid eq " + accountId + "&$expand=account_activity_parties($expand=activityid_activitypointer)").then(

but what i get now is the following error

"error": {
"code": "0x0",
"message": "The navigation property 'activityid_activitypointer' cannot be expanded. Only many-to-one relationships are supported for nested expansion."
}

Point is, when i call the API like this (which is more or less like the xrm call above)

xxxx.api.crm4.dynamics.com/.../accounts

then i get the same error.

When i do it like that 

xxxx.api.crm4.dynamics.com/.../accounts(GUID)

then i'll get the expected result.

But for me there's no difference at all concerning the nested expand, it's still the same kind of relation.

Any Ideas?

  • Suggested answer
    Pradeep Rai Profile Picture
    5,487 Super User 2025 Season 1 on at
    RE: Error while requesting multiple records with nested expand

    Hi,

    Not sure but after reviewing below links, it seems that we need follow below approach for $expand

    xxxx.api.crm4.dynamics.com/.../accounts(GUID)

    Links,

    https://www.odata.org/odata-services/#v3

    pastedimage1632039004001v1.png

    https://community.dynamics.com/crm/b/crminthefield/posts/nested-expansion-using-the-web-api

    Hope this helps.

    Thanks,

    Pradeep.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106 Most Valuable Professional

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 102

Overall leaderboard

Product updates

Dynamics 365 release plans