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
elixir86elixir86 

How to delete records using request.setMethod('DELETE') for the HTTP callouts to webservice assuming the data is in JSON format?

Hi Team,

How to delete records using request.setMethod('DELETE') for the HTTP callouts to webservice assuming the data is in JSON format?

Also, how to use the request.setMethod('PUT') to create records in the webservice assuming the data is in JSON format?

Many Thanks for all your help and support!
MagulanDuraipandianMagulanDuraipandian
You can use standard salesforce endpoint or create a custom inbound REST API. Check the below link
https://www.infallibletechie.com/2020/03/deleting-records-in-salesforce-using.html