With the export-XML action you can export the data stored in domain model entities into an XML document.
See Microflow Element Common Properties for properties that all activities share (e.g. caption). This page only describes the properties specific to the action.
If the domain-to-XML mapping requires an object as input, you can select a variable of the correct type.
Validate against schema
Whether the export action should validate the outgoing XML against the schema (XSD).
Setting this setting to yes can greatly decrease performance!
Default value: No
Optional and Nillable
Elements in a schema can be optional (minOccurs=0) and/or nillable. When an empty value for an element is encountered, the server will check the schema to decide whether to exclude the element (optional) or send the element with a nil attribute (nillable). In case an empty value is encountered but the element is not optional or nillable, the server will throw an exception which the developer needs to handle themselves in the microflow. This will occur regardless of the XML validation settings. It is recommended to make sure the data that is being exported is valid according to the schema.
There are two methods of storing the result of an Export XML action:
- Inside a ‘System.FileDocument’.
- Inside a string variable.