The Run Data Flow Action is one of the most important actions. It can be used to trigger any Data Flow on an event like a button press or timer. Data Flows can perform many operations, including making an HTTP request to an external API. To create a Run Data Flow Action, specify a Data Flow, input parameters, and optionally a destination for the result of the Data Flow.
- Take data that has been entered into a form and run a Data Flow to save it to AirData.
- Run a command against an external API such as Salesforce.
- Send an email to a customer at a specified time using a Timer.
- Validate the content of a user input form.
The selected Data Flow will be executed when this Action runs. Data Flows can be created and managed in the Connection Builder.
If the specified Data Flow has Inputs, they will be listed under Inputs. For each Input to the Data Flow, an Airscript expression may be provided. The Airscript expression can be a function whose return type matches the Input's type.
When the selected Data Flow completes, the end result will be stored in the Airscript variable in Output Binding.
For instance, after the Data Flow action pictured below completes, if the Create Zendesk Ticket Data Flow returns the string "Success!", the variable ticket_creation_result will now contain "Success!".
To learn how to create useful Data Flows and supercharge your App's workflow, read Introduction to Data Flows.
To learn how to use AirData to create a system of record that integrates with Data Flows, read Working with Data.
To learn how to use Airscript to work with data, read Airscript Quick Start.