Concatenate transform function

Introduction

The concatenate transform function is used to join the values for two or more source fields (using a given joining character) and then map the output of this transformation to a destination field.

For example, you might have a source system that captures the first name and last name for customer records, and then a destination system that expects this information in a single name field.

Adding a concatenate transform

In the instructions below, we'll step through the scenario mentioned above where our incoming payload includes the first name and last name for customer records, but our destination system expects this information in a single full_name field. The steps required are detailed in two stages:

Stage 1: Add all required source fields to the mapping row

To begin, we need to update/add the required mapping row so that it includes all source fields that need to be joined and then pushed to the specified destination.

Step 1 In your process flow, access settings for your map shape:

Step 2 Find (or add) the mapping row which requires a concatenate transformation. In the example below, we have a row that's currently set to map the source first name field into the destination full name field:

Step 3 On the source side of the mapping row, we need to add all the fields that need to be joined. To do this, click the 'pencil' icon associated with the existing source field:

Step 4 Details for the selected field are shown - click the add source field button:

Step 5 Click the 'pencil' icon associated with the new source field:

Step 6 Move down and update the display name and payload fields for the second source field that you want to join - for example:

In our example, our source data is coming in via a manual payload so are defining the payload field manually - if you're using a connection shape to receive data, you'll be able to select the required field from the associated schema for your connection.

Step 7 Accept these changes to exit back to your mapping rows - notice that there are now two source fields associated with the row you updated:

Step 8 Repeat steps 3 to 7 to add any more source fields that you need to join.

Step 9 Go to stage 2.

Stage 2: Add a concatenate transform function

With all required source fields defined for our mapping row, we can add a concatenate transform function to join the values for these fields.

Step 1 Select the add transform button for the required mapping rule - for example:

Step 2 Click the add transform button:

Step 3 Click in the name field and select concatenate from the string section in the list of transform functions:

...concatenate options are displayed:

Step 4 In the join character field, enter the character that you want to join each of your source fields - for example, a hyphen or a space:

Step 5 Click the add field button:

Step 6 Click in source fields and select the first source field to be joined:

All source fields that were added for this mapping in stage 1 will be available for selection here.

Step 7 Accept your changes.

Step 8 Click the add field button again:

...and add the next source field to be joined - for example:

Step 9 Accept your changes.

Step 10 Repeat steps 8 and 9 to add any more source fields to be joined. Each time you accept a new source field you'll see the sequence that they will be processed when this transform function runs - for example:

Fields are joined in the sequence that they are added here.

Step 11 Having added all required source fields to be joined, accept changes:

...then save the function:

Step 12 Ensure that the target field for this mapping row is set as required, then save the map shape. Next time the process flow runs, the given source fields for this mapping row will be joined and then that value is pushed to the target. The example below shows an incoming payload before and after the concatenate transformation is applied:

Last updated