Mazen Abu Taweelih
Mazen Abu Taweelih

Reputation: 647

Map CRM web api lookup to the name field instead of the guid

I wanted to know if there is a way to send the record name instead of the record guid when creating a record through CRM Web API,

for example, when filling a lookup field of type account, I'll be writing "[email protected]" : "/accounts('xxxxxxxx-xxxx-xxxx')"

Is there a way to send the name like this

"[email protected]" : "/accounts('Account Name')" ?

Upvotes: 0

Views: 595

Answers (1)

We have to use either record Primary Key GUID or Alternate key.

The snippet will look like this: "[email protected]" : "/accounts(blg_alternatekey='blg12345')"

Read more

Upvotes: 2

Related Questions