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

  • 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