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?
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.