web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Update (Patch) Contact using email address instead of contact id

(0) ShareShare
ReportReport
Posted on by
=eeWe have a use case where in we need to update a contact in Dynamics CRM using contact's email address instead of the contact id. Here is what the API documentation says:
 
PATCH [Organization URI]/api/data/v9.0/contacts(contactid)
 
 
Can we do as below:
PATCH [Organization URI]/api/data/v9.0/contacts?emailaddress1=name@yahoo.com
 
Any help would be appreciated.
I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    Update (Patch) Contact using email address instead of contact id
    Hi,
     
    Please check below article to define alternate key for your table 
     
    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/use-alternate-key-reference-record?tabs=webapi
  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    Update (Patch) Contact using email address instead of contact id
    Hi,
     
    You can define alternate key as your Email address field and use below syntax to update contact by email address 
     
    PATCH [Organization Uri]/api/data/v9.2/example_records(example_key1=2)
     
    More details can be found on below link
     
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    Update (Patch) Contact using email address instead of contact id
    Hi,
    Unfortunately, it is impossible.
    You must use the contactid, which is a GUID and is unique within that environment.
    So you need use it to find correct record to update it.
    More information:

     
    I hope you can mark my answer verified if it answer your question! If you have any questions, please feel free to contact me.
    Regards,
    Leah
     
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 141

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
DAnny3211 Profile Picture

DAnny3211 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans