Has anyone been successful in using alternate keys to update a lookup field when using web API?
I'm searching for examples online but can only see where the GUID is used.
*This post is locked for comments
Has anyone been successful in using alternate keys to update a lookup field when using web API?
I'm searching for examples online but can only see where the GUID is used.
*This post is locked for comments
It works in SP1 using the syntax provided by Martjn.
Does this blog post help: www.oak3.org/.../using-alternate-keys-webapi
I think it's the same issue you are referring to and after I figured out how to use it, I wrote a blog post on the subject.
It would look something like this to set a lookup value using the alternate key 'blg_alternatekey':
url: /api/data/v8.2/contacts method: POST body: { "firstname" : "john", "lastname" : "smith", "parentcustomerid_account@odata.bind" : "/accounts(blg_alternatekey='blg12345')" }
This should solve your query.
Dude, Have you tried to set Lookup field using Alternate Key? Kindly Suggest.
Hi
Did you find any solution for the same? I am facing the same issue and need to set Lookup field using Alternate Key.
Thanks,
Rahul
Thanks! But is there a way to update a lookup field via alternate keys instead of the GUID?
That link allows the update of a record via an alternate key...
Please have a look in below blog:
[View:http://www.inogic.com/blog/2016/10/retrieve-update-and-delete-record-using-alternate-key-in-dynamics-crm-web-api/]
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156