I am getting "Bad Request" response while creating contact with company name.
Code I am using to set account company is below.
_webApiURL = [Organization URI]/api/data/v8.2/
contact.Add("parentcustomerid@odata.bind", string.Format("{0}accounts(b6bc8b98-14e7-e611-8103-5065f38ac921)", _webApiURL));
*This post is locked for comments
OMG, thanks. This one had me stumped for over an hour...
Thanks Jason
Because parentcustomerid can be either account or contact you'll need to specify in the odata.bind
parentcustomerid_account@odata.bind
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,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156