Overview
The 'Get Data' Activity allows you to get the data from the selected resource. You can add multiple filters to filter the data. It has three child buttons 'SINGLE MATCH', 'MULTI MATCH' and 'NO MATCH'. You can execute different activities on these buttons.
After opening the 'Get Data' activity, you will see the configuration panel as shown below.
Default Configuration Parameters:
Enter Resource: Resource name to fetch the data.
Enter Property: Selected resource property name.
Enter value: Property value to be fetched.
Comparison: Condition to fetch the data.
Save Result In: All of the data fetched will be stored in this.
Filters: allows you to add multiple filters while getting the data from the selected entity.
HOW IT WORKS:
A Simple Example to configure the 'Get Data' activity in PopFlow Studio.
Select the 'Get data' activity from the 'Activity Sidebar'.
Click on the 'get data' activity to open and configure the 'Get data' activity.
Click on the 'Enter Resource' field to enter the 'Resource' name.
In this example, we are trying to get the contact information by using the 'phone number' or 'first name' of the caller.
Select the 'Contacts' resource from the list.
Filters:
In the filter section click on the 'Enter property' field, it will show the property list of the selected entity as shown below.
In the 'Enter Value' field enter the appropriate value to perform the filtering on the selected 'Resource'.
You can add multiple filters in the 'Get data' activity by clicking on the filters button.
Select the comparison type from the comparison list as shown below:
You can select any one comparison in a filter.
Once the configuration of the 'Get Data' activity is completed it will look like as shown below:
You can use the variable name or you can enter the value directly into the 'Enter Value' fields.
After filling the values in the given fields you can close and save the activity by clicking outside of the activity panel.
You will notice three child buttons under the 'Get data' Activity.
SINGLE MATCH: if the 'get data' activity has only one value then this button activity will execute.
MULTIPLE MATCH: If the 'get data' activity has multiple values then this button activity will execute.
NO MATCH: If no result then this button will execute.
You can open any activity on these buttons and can use the result of the 'Get Data' activity to execute the several activities, like on 'Single match' you can open the contact of the customer, on 'Multiple matches' you can do the 'Pop search and select' and on 'No match' you can create a contact. Below is the example to add activity and use the result of the 'Get data' activity.