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
vikas81.singhvikas81.singh 

How We create/return xml of any object(Custom /standerds) in salesforce

Hi ,

 

I am new in salesforce and i wana that how we create/return  xml  of any (Custom or standard) in salesforce .

 

Vikas

DCBoyDCBoy

You can use DOM methods to parse and work on XML documents, here is the link to Apex guide for using XML classes. For returning data in xml format, I have seen it being done using REST APIs, not sure if there is another way to do it. Hope this helps.

vikas81.singhvikas81.singh

Thanks for providing ur valuable response . will it work on  objects(Custom or standard)?

 

chavachava

Did you find the solution ?