Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

'Expand' not working when used against odata feed in dynamics 365 portal

Posted on by 402

'Expand' not working when used against odata feed in dynamics 365 portal. 

Entity Permissions has been given with proper web roles assigned on both entities on Global scope.

Error : Query option 'Expand' is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings.

I am using this to get the related data of a related entity which are related by Many To Many Relationship.

url: "~/_odata/new_entity1?$expand=manytomanyrelationshipname"

*This post is locked for comments

  • Verified answer
    Mohammed Fakhri Profile Picture
    Mohammed Fakhri 402 on at
    RE: 'Expand' not working when used against odata feed in dynamics 365 portal

    No worries mate!! I did a workaround specified here and it works like a charm.

    bernado-nguyen-hoan.com/.../querying-many-to-many-relationship-in-crm-portal-using-javascript

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans