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

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans