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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Updating Dynamics "Health 365" CRM via HTTP Put Requests

(1) ShareShare
ReportReport
Posted on by 14

 

I am reaching out with a question pertaining to Making HTTP Requests to the Dynamics CRM Web API. Specifically, making a PUT (or POST) request to update a field within an individual Contact on the CRM. 

My issue is this: I am unable to update a field for a specific contact with a Put request, nor am I able to update it with a Post request. 

This is after I have already authenticated via Azure Active Directory. GET requests work just fine.... but when I sent a PUT or a POST I am met with a 405 – Method Not Allowed error when I attempt to update this field with a Put. (See image below)

 405methodnotallowed.JPG

 

 I can understand why a POST attempt would not be correct – because the field already exists, so it would not be on the right track to try to create this new field…

 

However, as you can see, the seemingly-more-appropriate attempt to make a PUT request is blocked as well. I would think that the Put request would be the correct request to use if I wanted to update an existing field.

 

Note:

  1. At first, I thought this was an issue with my account’s permissions. However, I am able to create, update and delete records within the CRM Portal. So, I do not believe it is an issue with my account permissions.
  2. This operation does work with a Patch request – however, in the current environment I am working in, a Patch request is not an option. I am only able to use Get, Post, Put & Delete requests within the context of my personal situation. (See Images Below for Patch Request)

 

Please let me know your thoughts on this situation, I seem to be between a rock & a hard place on this!

*This post is locked for comments

I have the same question (0)
  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Based on the documentation, update uses HTTP PATCH. Any specifc reason PATCH is not an option?

    docs.microsoft.com/.../update-delete-entities-using-web-api

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Take a look at the comments on this thread. It may help you

    community.dynamics.com/.../web-api-update-issue-using-java

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans