I am trying to use C# and the NEXT Web API set for CRM to populate data into CRM.
currently I can add Accounts and Contacts with no issues.
I am having issues trying to find an example of how to associate the account entity with the contact entity.
I have tried both POST & PATCH but keep on getting "BadRequest"
createRequest2 = {Method: PATCH, RequestUri: 'xxxxxxxxxxxxx.api.crm.dynamics.com/.../$ref', Version: 1.1, Content: System.Net.Http.StringContent, Headers:
{
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/json; charset=utf-8
Content-Length: 127
}}
{{
"@odata.id": " ">xxxxxxxxxxxxx.api.crm.dynamics.com/.../accounts(6314b517-a25b-462c-9c63-1b87947fd2f4)"
}}
httpClient.Send(createRequest2);
is there anyplace where I can get more detailed examples in c# that work with the CRM NEST Web API?