XML files

How can I download xml files from within suitecrm?

Hi Adriano_ABC,

Can you elaborate? Which xml files are you trying to download?

One of my clients requires that the information (fields) of a particular custom module be downloaded in xml so that it transmits that file to another system to read.

In this particular case it does not want automatic transmission or data integration with that other system. He wants the file containing the fields like Name, surname, description, etc …
You see?

I see. If you were to go down the automatic route, you could use the SOAP API to get the files as XML.

There is not currently a “build in” way to get XML data out of the CRM via a menu action. We use CSV as the main format to “export” the data.

The user solution is to export the data as CSV and then use a CSV to XML converter.

The developer solution is to create a custom action for that module.
See https://docs.suitecrm.com/developer/controllers/ and https://docs.suitecrm.com/developer/metadata/ for an example. You will need to add a new entry in the buttons array. In SuiteCRM 7.9 you can also do this to for the bulk actions in the list view.

You would then need to use the SimpleXML php extension (http://php.net/manual/en/book.simplexml.php) to serialise the module sugarbean.

1 Like