Activity Forums Salesforce® Discussions What is getBodyDocument() method in Salesforce Apex?

  • What is getBodyDocument() method in Salesforce Apex?

    Posted by Aditya on February 13, 2020 at 1:09 pm

    What is getBodyDocument() method in Salesforce Apex?

    Sumit replied 5 years ago 2 Members · 1 Reply
  • 1 Reply
  • Sumit

    Member
    February 13, 2020 at 1:10 pm

    getBodyDocument()
    Retrieves the body of this request as a DOM document.
    Signature
    public Dom.Document getBodyDocument()
    Return Value
    Type: Dom.Document
    Example
    Use this method as a shortcut for:

    String xml = httpRequest.getBody();
    Dom.Document domDoc = new Dom.Document(xml);

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos