Map Element

Map Icon The Map function was introduced in Summer ’19 and gives us a lot more flexibility in working with the Recommendations. With the Map function we manipulate Recommendation Fields inside the Strategy, or can set custom inputs for the flow that is linked to the Recommendation.

Let’s first look an example on how to update Recommendations fields using the Map step. In this example we will change the description of the Recommendation with the Case Subject. We go back to the Branch Selector example and place the Map step behind the Branch Selector (no need to perform work on Recommendations that might never make it past the Branch Selector):

Map Screenshot

In the Map step we can then append the Subject of the Case to the Description in the following way:

Map Screenshot

The map step does offer the option to manipulate multiple fields in one go by adding them with the Add Field button.

The result then looks, for example, like this:

Map Screenshot
Map Screenshot

You can also use this to personalise the description based on the user who is using the application. If we change the map to this:

Map Screenshot

Then the end-result looks like:

Map Screenshot

You can also get access to related objects this way, if for example we append the following at the end of the map definition:

Map Screenshot

The result looks like:

Map Screenshot

The other thing that we can do using the Map step is define a custom input argument for the flow related to the Recommendation. Let’s assume that we have a custom input variable varAccountType and we want to set this from the Strategy. On the flow, that variable is define like this:

Map Screenshot

Make sure that you tick the ‘Available for Input’ checkbox otherwise it can’t act as an input parameter for the flow.

Now on the Map step in Strategy we simply specify the input parameter name and specify the value:

Map Screenshot

When we run the flow, we see that the Account Type is correctly passed to the flow:

Map Screenshot

Back to Elements

2068 reads