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

  • Sumit kumar

    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

AI in Salesforce

Transform businesses with the power of Artificial Intelligence leveraged through Salesforce Einstein

Blog in

Artificial Intelligence is powering next-generation customer experiences with smart predictions, intelligent recommendations, timely automation and much more. Gartner predicts that by 2020, a staggering 85% of…

Popular Salesforce Videos