Before i create a new project (new instance set up) i was woundeing if anyone new this off the top of your head, if i want to pass a value to a field of type EntityRefrance (ex_exampleEntityReferance in the example below) do you just pass the GUID for the record or do you need a set if in a diffrent way?
POST [Organization URI]/api/data/v9.0/accounts HTTP/1.1
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
Accept: application/json
{
"name": "Sample Account",
"creditonhold": false,
"address1_latitude": 47.639583,
"description": "This is the description of the sample account",
"revenue": 5000000,
"ex_exampleEntityReferance": ??????
}
Thanks for any help
Hi,
Please check below article to set the lookup field from web api.
Hello,
If my reply (or replies) answers your question take a minute and verify the answer. You can do it by clicking "Yes" at the top of the reply (or replies) under the label "Does this answer your question?"
Hello,
I would recommend starting using DataVerse Rest Builder to avoid guessing.
It's available as an XrmToolbox plugin and as a model-driven app.
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Muhammad Shahzad Sh...
106
Most Valuable Professional
Eugen Podkorytov
102