Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

Unable to use Patch operation for RetailExternalIdToCustomerMap with Postman.

Posted on by 2
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.
 
 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans