Data Flow Templates
Overview
Data Flow templates provide a simple way to connect data in an application with commonly used actions.ย
Data Flow templates are pre-configured but they need to be further tailored for a customized experience.
Within a Journey, there can be multiple Data Flows, each built with a specific purpose, and they can be triggered from different parts of the application.
Submitting a CSAT score into Airdata
In this example, a Save CSAT Data Flow has been created to store the application's feedback and score users submit through a Web Flow.
Creating a Data Flow from a template
From the Connections Builder, Data Flow templates can be added by clicking on the โ+โ sign next to Data Flow. This example will use the "AirData Insert Record" Data Flow. Data Flow templates are created with some pre-configured information. However, they need to be adjusted to the applicationโs use case.
It is also good practice to rename Data Flows to easily identify them across the application.
In this example, the Data Flow will save information from the inputs of the "CSAT" Web Flow Template to the an app object called "CSAT".
When a Data Flow is called, the operation steps are executed sequentially starting at the top and working down the Stage.ย
At Start, create an input for this Data Flow with the type CSAT. This is accessible by clicking on the '+' icon and going to objectsย > CSAT
Then, in the AirData Request data operation, select the CSAT App object, the Payload Type is INSERT and the object to insert is also CSAT.
Connecting Data Flows to Controls
Data Flows are initiated by some other part of the application.ย
Following the example above, in the Web Flows Builder of this app, there is a CSAT Web Flow requesting users to score the app and submit feedback. Once they select a score and leave their comments, they click on a โSubmitโ button.
In order to store that information in the Save CSAT Data Flow, the following steps should be followed:ย
- Click the โSubmitโ button in the CSAT Web Flow
- Click the โ+โ sign under Actions and select a Data Action
- Select the previously created Save CSAT Data Flow
- Add the corresponding inputs to the Data Flow
{"score": CSAT,"feedback": feedback}
As a result, when the customer submits their score and feedback, the values will be saved in the CSAT object through the Save CSAT Data Flow.
Further Reading
Updated over 1 year ago