You need to sign in to do that
Don't have an account?
Anoop 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?
#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?
https://salesforce.stackexchange.com/questions/13294/patch-request-using-apex-httprequest (https://salesforce.stackexchange.com/questions/13294/patch-request-using-apex-httprequest" target="_blank)
I have already tried the option given in the URL. Its not working yet
Refer below link ,it may be helpful
https://trailhead.salesforce.com/en/modules/apex_integration_services/units/apex_integration_webservices
Note: Add the REST API service URI (end point URL) to remote site settings before sending HTTPReques