Im trying to update an entry in RetailExternalIdToCustomerMap through the API, so that I can set some entry to "IsActivated": "No" but I dont know how to.
When using Get and Post it works fine like this:
GET:
https://**********.axcloud.dynamics.com/data/ExternalIdToCustomerMaps?$filter=CustomerAccountNumber eq '1001248'
POST:
https://**********.axcloud.dynamics.com/data/ExternalIdToCustomerMaps
{
"dataAreaId": "nkr",
"ExternalIdentityId": "499fd94f-f923-4cde-98ac-95d0a67f3f64",
"ProviderId": 5637146076,
"IsActivated": "Yes",
"CustomerAccountNumber": "1001241",
"IsAutoLinked": "No"
}
But how do I select which entry to update when doing a patch?
I tried this but get this error:
PATCH
https://*****************.axcloud.dynamics.com/data/ExternalIdToCustomerMaps(RecId='5637386086')
{
"dataAreaId": "nkr",
"ExternalIdentityId": "cd23f6dc-99a6-4c5b-8e7a-75f3fa047b40",
"ProviderId": 5637148326,
"IsActivated": "Yes",
"CustomerAccountNumber": "1001270",
"IsAutoLinked": "No",
"RecId": "5637386086"
}
{
"Message": "No HTTP resource was found that matches the request URI 'https://************.axcloud.dynamics.com/data/ExternalIdToCustomerMaps(RecordId='5637386086')'. No route data was found for this request."
}
I also tried the other attributes instead of RecId but I cant get it to work.