Activity Forums Salesforce® Discussions How to set body of the HTTP request in Salesforce Apex?

  • Anuj

    Member
    December 31, 2019 at 11:57 am

    There are following  many methods for HttpRequest. All are instance methods.

    Http http = new Http();

    HttpRequest req = new HttpRequest();
    req.setEndpoint('http://www.xyz.com');
    req.setMethod('GET');

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos