With the Export Mapping action, you can export the data stored in domain model entities into an XML document, JSON document, or string variable.
For details on the properties that all activities share (for example, caption), see Microflow Element Common Properties. This page only describes the properties specific to the action.
2 Action Properties
2.1 Export Mapping
Export mappings support flat JSON. You can select a JSON structure document in an export mapping, and you can select JSON elements that are at most one level deep. That means that you can export simple JSON objects like
2.2 Parameter Type
If the export mapping requires an input, this field shows the type of the input.
If the export mapping requires an input, you can select a variable of the correct type.
2.4 Content Type
Introduced in version 7.8.0. This feature is still in private beta, and is subject to change before the final release.
If the export mapping is based on a message definition, it can export both XML and JSON. Choose which type of output you want.
3 Validation Properties
Validation properties are only applicable if an export mapping is selected that maps to XML.
3.1 Validate Against Schema
This determines whether the export action should validate the outgoing XML against the schema (XSD).
Setting this to yes can greatly decrease performance!
Default value: No
3.2 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 you need to handle yourself 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.
4 Output Properties
There are two methods of storing the result of an Export Mapping action:
- Inside a ‘System.FileDocument’
- Inside a string variable