Export/Import records to/from XML

Export/Import records to/from XML

  
OutSystems recently published a new version of the XML solution that includes, among other new stuff, support for exporting and importing records to and from XML.

This can be done using the actions:
Serialization_RecordToXml: exports any entity record to XML
Serialization_XmlToRecordList: imports any set of records from XML

The above actions are totally generic and may be used with any entity within OutSystems platform.
By using this functionality, you can export/import table records (of different types) to one XML file. At some OutSystems projects this already proved to be useful for exporting and importing the application’s full DB.

Tip: the action Serialization_XmlToRecordList takes advantage of the fact that record lists are ‘pass by reference’, hence just pass an empty record list as a parameter that will be internally populated.