+ 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.