Reputation: 647
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
Reputation: 22836
We have to use either record Primary Key GUID or Alternate key.
The snippet will look like this: "[email protected]" : "/accounts(blg_alternatekey='blg12345')"
Upvotes: 2