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 :
Microsoft Dynamics CRM (Archived)

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

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

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

  • Community Member Profile Picture
    on at

    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.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans