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 :
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?

I have the same question (0)
  • Suggested answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#2
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 37

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans