Transforming data with the transformation generator
When you map fields in a flow, if your source and target data formats or drop-down values do not match, you can use the transformation generator to help construct JSONata expressions that convert your source data to the required target format.
About this task
- Pattern transformation
- Use this transformation to change the format of source data that is passed to a target
application if the source and target data formats do not match. The source data might be specified
as mappings from previous nodes in the flow or static text within the target text field.
For example, if a source application requires dates to be in the format
DD/MM/YYYY
, but the target application requiresMM/DD/YYYY
, you can provide sample data of the source and target formats, then use the transformation generator to generate a JSONata expression for the "source" mapping in the target field. Similarly, if a source application requires names to be in the formatFirstname Surname
and the target application requiresFirstname SURNAME
, the transformation generator can construct a JSONata expression by using samples that you provide. - Enum transformation
- Use this transformation to define how to map source and target drop-down values that do not
match, to ensure that appropriate values are passed to the target application.For example, if the source and target applications offer different values for a Priority drop-down list (as shown in the following table), you could choose to map the source and target values as follows:
High
:Urgent
,Medium
:Normal
, andLow
:Low
. You can then use the transformation generator to generate a JSONata expression for the "source" mapping in the target field.Source application Target application - High
- Medium
- Low
- Urgent
- Normal
- Low
Generating pattern transformations: Transforming the data format of a single mapping in a target field that is populated with one or more mappings
If a text field is populated with mappings from the Suggested mappings or Available mappings lists, but the data formats of the "source" mappings do not match the data format of the target field that is populated, you can generate a JSONata expression to define how to present the source data in the target application.
About this task
This information is applicable when a target field is populated with one or more "source" mappings from previous nodes in the flow. You can transform the data format of a single mapping that is inserted into a target field.
Procedure
To transform the data format of a single mapping in a target field that is populated with one or more mappings, complete the following steps.
Generating pattern transformations: Transforming the entire contents of a target field that contains multiple mappings
About this task
Procedure
Generating enum transformations
About this task
SourceApplication has different values for SourceFieldName
Procedure
To map the drop-down values for the source and target fields, complete the following steps.