You need to sign in to do that
Don't have an account?
Jitendra Rawat
Httprequest.setMethod() not support "PATCH" method.
I have to send outobund http request by using PATCH method, but salesforce httprequest.setMethod(), not support PATCH method, So please help me how can I achive this?
Please use POST or PUT method for PATCH request and append parameter ?_HttpMethod=PATCH in the endpoint as given in the following discussion-
http://salesforce.stackexchange.com/questions/13294/patch-request-using-apex-httprequest
Please mark this as Best Answer if it helps you.
Regards,
Grazitti Team
Web: www.grazitti.com
Email: sfdc@grazitti.com
All Answers
Please use POST or PUT method for PATCH request and append parameter ?_HttpMethod=PATCH in the endpoint as given in the following discussion-
http://salesforce.stackexchange.com/questions/13294/patch-request-using-apex-httprequest
Please mark this as Best Answer if it helps you.
Regards,
Grazitti Team
Web: www.grazitti.com
Email: sfdc@grazitti.com
I stuck across the same issue and unfortunately not able to make 'PATCH' call with this solution by appending the ?_HttpMethod=PATCH parameter. Below is my code to call Microsoft Dynamics web API.
I'm not able to update the record and always have the 'Method Not Allowed' error. Below is the debug line of response.
Also, even I'm passing the parameter 'PATCH' by appending the endpoint URL, the callout request is still showing the call method as 'POST' (Method=POST).
I've also tried to override the method by setting the header parameter as below without any luck.
It would be a great help if anyone suggest me to make successful PATCH call.
Thanks,
Sandip
I am able to process the same request but not getting the method not supported error. This is the reposne I am getting :
Thanks for your reply. Can you please guide me if missed something? Have you found this method working anytime?
Thanks,
Sandip
I'm getting the same error, did you get the solution for the above issue you had? Could you please help me?
Regards,
Natarajan