2 réponses
It appears that Salesforce does not support the PATCH method for HTTP callouts. There are some proposed workarounds [1] [2] but none of them are particularly good. Probably your best bet would be to figure out if you can do the callout as a POST instead of PATCH. You could always file an Idea on the Idea Exchange [3] for Apex to support PATCH.[1] http://salesforce.stackexchange.com/questions/57215/how-can-i-make-a-patch-http-callout-from-apex[2] http://salesforce.stackexchange.com/questions/13294/patch-request-using-apex-httprequest[3] https://success.salesforce.com/ideaPost