Using the Mapping Step

Last Updated: 05/02/2018 Introduced in Version: 2.0

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 most sense to use when affecting multiple objects, or multiple attributes of an object.

In this example, the Mapping step will be used to populate attributes of three objects, a FileReference object, a string object, and an Account object.

Go into a Designer Folder and click on Create Flow. Name the flow and click Create.

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

Enter the name File

Click on the Type field Browse button. In the search bar type in file. Select FileReference and click OK.

 

Click OK. Repeat this step to create two more pieces of input data: Account (data type is Account), and StringABC (data type is string). The flow input data should look like this:

 

Next, introduce the Mapping step. From the Toolbox, expand the Data category and drag and drop the Mapping Step into the workspace. Connect the Start step to the Mapping step, and connect the Done path of the Mapping Step to the End step.

Click on the Mapping Step and, from its Actions menu, select Edit Input Mappings.

Change the mapping type for the Account data on the right to Build Data. Connect StringABC to the EmailAddress attribute of the Account data.

 

Now, the EmailAddress data will contain the value of StringABC following the Mapping step.

Change the mapping type for the File data on the right to Build Data. Expand Flow Data and connect CurrentUserEmail to the FileName attribute of the File data.

Lastly, map a string datatype into the StringABC variable. You could use FlowTrackingId.

 

Click OK. When the flow executes then the mapping step will change the values of the existing variables.

Additional Resources