Data Activities: Set Value

Data Activities: Set Value

Overview

The 'Set Value' Activity provides the ability to assign a variable that can be used within the Workflow. 

image

After opening the 'Set Value' activity, you will get the below configuration panel.


Default Configuration Parameters:

  1. Property : The name of the variable being created. This name will be used in the Workflow to reference the variable.
  2. Enter Value : The definition or expression that describes the variable.
    1. Note that evaluated expressions, such as ANI, must be contained by curly braces { }.
    2. When using the Interaction Variable’s value within other Activity logic, the variable will be contained by curly braces.
    3. For example, the Value Expression: {Variable.CustomVar} will retrieve the value stored in the Interaction Variable name: CustomVar.


How it works:

  1. Select the 'Set Value' activity from 'Activity Sidebar'.
  1. Click on 'Set Value' activity to open and configure the 'Set Value' activity.
  1. Enter the property name inside the 'Property' field.
  1. Enter the 'property' value inside the 'Enter Value' field.

Once the configuration of 'Set Value' is completed then you can use the variable name in any activity within the workflow. You can also use the active interaction value to set the property.

For example, suppose we have two customer Gold and Silver for both we need to execute two different activities.
  1. In this example we are using 'Get Data' activity to fetch the customer details using the Caller ID and 'If' activity to check if the customer is Gold or Silver member.
  2. You can refer to the 'Get Data' activity and 'If' activity documentation to configure them.
  3. We will be setting the customer type using the 'Set Value' activity.
After the configuration, it will look like as shown below:


In the 'Set Value' activity we are setting the customer type and later checking it in the 'If' activity if the customer is 'GOLD' then it will execute the 'THEN' button else it will execute the 'ELSE' button.

Interaction Variables:

You can set the multiples values using the single 'Set Value' activity.
To set multiple values click on the 'Interaction variables' button. After clicking on the button it will add a panel with the 'Property' and 'Enter Value' fields as shown below.

  • You can also delete the panel by clicking on the red delete button.

    Still can’t find an answer?
      • Related Articles

      • Data Activities: Post Data

        This information is only applicable for Oracle integrations. The 'Post Data' activity allows you to insert important data into the entity table. After opening the 'Post Data' activity, you will get the below configuration panel. Default Configuration ...
      • Data Activities: Update Data

        This information is only applicable for Oracle integrations. Overview The 'Update Data' activity allows you to update important data into the entity table. In the PopFlow Studio, you can configure the 'Update Data' activity. You can select the fields ...
      • Pass data between PopFlows & Activities

        Between the Curly Brackets is where we'll live in this module! We'll connect the data produced from other activities and steps in your workflow together! Data exports are the "glue" that ties workflow actions & activities together. In this module, we ...
      • Data Activities: HTTPS

        The HTTPS Activity allows you to pass standard HTTP GET, POST, PUT, PATCH, DELETE, OPTIONS, and HEAD requests to external web services for the purposes of sharing and retrieving data. BEFORE YOU BEGIN The API you are calling must be CORS compliant ...
      • Data Table & Actions

        This activity is currently only available for Zendesk integrations. The Assistant activity leverages the Data Table and Actions activities to render dynamic buttons, tabs, and data points. It can display single values, trigger PopFlows, or show ...