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
kdmrkdmr 

How to create and save XML file

Hi,

 

 I have one custom button. If i click this button, i need to get the data and create the XMLfile.

 

Can i create the XML file and write data into the XML?

 

Note: Need to get the data from salesforce to local.

 

 

Thanks for any help,

 

BomanBoman
Query the object/s of interest, build your XML String based on values of the fields, callout to a webservice, sending over your XML String, and let the webservice store the file, locally or remotely, for your app.