Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

fields in web api query require leading undersore & trailing "_value"

(0) ShareShare
ReportReport
Posted on by

Im writing a web query to get information from a custom entity in Dynamics.
I checked the entity field names in dynamics and wrote the following query:

https://MyDynamicsSite/MyOrg/api/data/v8.1/org_customEntity15?$select=org_customer


This query does not return anything for org_customer field, despite it being the correct name of the field in the entity.

If i use CRM REST Builder to create my query it looks like this:
https://MyDynamicsSite/MyOrg/api/data/v8.1/org_customEntity15?$select=_org_customer_value

Note the leading underscore and trailing "_value" in the field name in the select.


Where does CRM REST BUILDER get this "correct" field name from, as i cannot find it anywhere within dynamics?

  • wilson_smyth Profile Picture
    on at
    RE: fields in web api query require leading undersore & trailing "_value"

    realized that the webapi does this for any lookups. microsoft documentation says it does this for "certain types", but doesnt specify what these types are.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans