Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

CRM 2016 Online Web Api odata annotations not being honored on properties specified in expand clause

Posted on by Microsoft Employee

I have the "odata.include-annotations=OData.Community.Display.V1.FormattedValue" header specified for my web api calls, which works fine on properties(attributes) returned that belong to the main entity being queried.

However I don't get the annotated properties that belong to the single value navigation property specified in the $expand query clause. I'm getting back a large list and it would would be prohibitive performance wise to have to make a secondary call for item in the list to get the annotation property values. 

This seems like a bug to me, any suggestions?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CRM 2016 Online Web Api odata annotations not being honored on properties specified in expand clause

    Yes, I have the no odata formatted values in the fetchXml version either. Also the fetchxml json results output seems stranger with a bunch of properties having a string such as x200e (could be wrong, from my memory) in the property name.

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: CRM 2016 Online Web Api odata annotations not being honored on properties specified in expand clause

    Hello,

    Have you tried to use FetchXml call - exploringdynamicscrm.blogspot.com/.../with-new-web-api-we-can-execute-system.html

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans