Mapping fields between steps
After you assign fields to a method flow step, you can now map the input step fields to the output step field. If the input and output steps have the same field you can use automatic mapping. However, in most cases, you will have to perform the mapping yourself.
Map input and output steps fields
To map fields perform the following:
- Click the mapper element
of the step you want to map to.
In the example above, click the mapper of the get-accounts-by-customer-id asset step.
The mapper view shows the fields of the step you want to map to on the right-hand side and the fields of the steps preceding that step on the left-hand side.
- Click the handle of the field that you want to map and then the handle of the destination field.
The mapped fields are connected by a line stretched between the blue-colored field handles.
To learn more about the different field handle states,
Mapping fields using mapping expressions
You can map and apply an Expression logic on the origin field using mapping expressions
You can either code the expressions or use Flow Functions
Mapping fields using functions
You can map and apply a predefined Function on the origin field using Functions
Based on the origin field type and the target field type, the system will offer you several predefined functions
Current functions (Jan 2025):
ARRAY_SIZE, ARRAY_AT, ARRAY_SLICE, ARRAY_REVERSE, ARRAY_SORT STRING_TO_UPPER_CASE, STRING_TO_LOWER_CASE, STRING_TRIM, STRING_TRIM_START, STRING_TRIM_END, STRING_REVERSE,STRING_PARSE_DOUBLE, STRING_PARSE_INT, STRING_PARSE_LONG
BOOLEAN_TO_STRING,
NUMBER_TO_STRING,
NUMBER_TO_LOCALE_STRING
Mapping fields automatically
You can use automatic mapping if the input and output steps have the same fields.
- Click the mapper element
of the step you want to map to.
In the example above, click the mapper of the Output step.
The mapper view shows on the left hand side the fields of all the steps preceding the step you want to map to.
In the example above, the Get-Accounts-By-Customer-id step and the Input step are accessible for mapping.
- Click
to display all the Get-Accounts-By-Customer-id and Output fields.
In this example, the fields of the two steps are identical and, therefore, can be auto-mapped.
- Click
near the step header and then click
automap.
All fields with identical names are automatically mapped.
Reviewing field mapping states
The field handles reflect the different mapping states a field can have in the following way:
Default state - the field is not mapped.
Mapped state - the field is mapped.
Disable state - if the field parent is mapped or any of its children are mapped.
Disable Mapped state - if all children are mapped.
Expression-required state - the mapped field requires an expression definition
Updated about 2 months ago