Using the Mapping Step
  • 18 Feb 2020
  • 1 Minute to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Using the Mapping Step

  • Dark
    Light

Article summary

Overview

The Mapping step lets you map data from one object into another object. For example, if a flow has empty objects and you want to populate attributes of those objects, the Mapping step could meet this need. The Mapping step makes the most sense to use when affecting multiple objects, or multiple attributes of an object.

Example

In this example, the Mapping step will be used to change the name of a file.

Begin in a Designer Folder and select Create Flow. Name the flow and select 'Create'.

2019-10-09_094014.png

Select the Start step and in its Properties panel on the right select Add New under Flow Input Data.

Type the name File. Select the Type field Browse button. In the search bar type in file. Select FileReference and select 'Ok'.

2019-10-08_162159.png

Add a Create Data step from the Data category in the Steps panel. Under Data to Create select Show Editor.

2019-10-09_094341.png

In the Data Definitions dialog add "NewFileName" as a String. For the Input type "UpdatedFileName", this will be the new file name.

2019-10-08_163850.png

Next, add the Mapping step. From the Steps panel, expand the Data category and drag and drop the Mapping step into the workspace. Connect the Create Data step to the Mapping step, and connect the Done outcome of the Mapping step to the End step.

Change the mapping type for the File to Build Data. Connect NewFileName to the FileName attribute of the File.

2019-10-08_163910.png

When the flow executes then the mapping step will change the FileName of the existing File.

2019-10-08_164430.png



Was this article helpful?