function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anoop Krish KuniyilAnoop Krish Kuniyil 

Can someone please tell me whether its possible to use http PATCH method?

There is a requirement to make http callout using PATCH method to update some records on the external application. I understand from the forum HttpRequest doesnt support PATCH method and the workaround solution to use the PATCH request with HttpRequest Class is,

#1. setHeader('X-HTTP-Method-Override','PATCH');
#2. Append "?_HttpMethod=PATCH" as prefix in the endpoint URL

I have tried both the option but the server is returing 404  - Not Found Error. Can someone tell me other alternative option available?
Amit Singh 1Amit Singh 1
Refer below Link.
https://salesforce.stackexchange.com/questions/13294/patch-request-using-apex-httprequest (https://salesforce.stackexchange.com/questions/13294/patch-request-using-apex-httprequest" target="_blank)
Anoop Krish KuniyilAnoop Krish Kuniyil
Hi Amit

I have already tried the option given in the URL. Its not working yet
Varun SinghVarun Singh
Hi Anoop,

Refer below  link ,it may be helpful