Solved
Forum Discussion
phani
6 years agoAdvisor
HI KevinSaquing ,
Yes, it is possible by passing header X-HTTP-Method-Override = PATCH. Following is the syntax.
<#assign response = http.client.request(API).header("X-HTTP-Method-Override", "PATCH").post()/>
Thanks,
Phani
KevinSaquing
6 years agoAce
Hi phani
Thanks but, unfortunately, this does not work on my end.
Regards
- phani6 years agoAdvisor
This is strange, I am using the same code in multiple endpoints without any issue. Are you seeing any FreeMarker exceptions? will you able to debug on the other end (API) whether the request is coming or not?
http.clinet.request freemarker context object will throw exception if the API status code is other than 200, maybe check API status code as well.
- KevinSaquing6 years agoAce
Thanks for the suggestion but maybe its on Salesforce end. The solution for my problem is fixed by adding Salesforce parameter 🙂
Related Content
- 7 months ago
- 5 years ago
- 5 years ago
- 13 years agoInactive User