Database save steps
Database save steps allow data to be saved to an external data source from a flow, such as to a database.
Overview
Database save steps are used to save data from a flow into an external data source; typically this would be into an application database such as SQL, Salesforce, , and so on.

This is achieved by adding data actions to the step to specify which value contains the data you wish to save, and where the data should be saved. The database save works in the same way as an upsert database function.
For example, in a flow a page step is set up to allow a new employee to be added using input fields; this data is stored in an employee object value. A database save step in the flow then saves this new data record into the relevant employee data table in an external database, using the database .
Database operations can also be performed using message actions on a step. See Adding Message Actions to a step.
Adding a data action to save data from a flow
To add a data action to a database save step:
-
Drag a database save step onto the flow canvas.
-
Name: Enter a name for the step.
-
Click New Data Action to add a new data action. The Data Action panel is displayed.
-
Name: Enter a name for the data action.
-
The order in which this Data Action should be loaded: Specify an order in which the data actions should be performed. For example, a value of "0" will result in a data action being performed before a data action with a value of "1".
-
Disable this data action: Temporarily disable the data action.
-
Enable Smart Save of data (Connector must support this feature): Select this option to trigger a database save only if the object has been modified in the flow. This is currently only supported by the application Salesforce .
-
Which Value do you want to save?: Define which object or list value contains the data you wish to save. Click Select or create a new value to select an existing list or object value, or create a new value to contain the data you wish to save.
-
Where will the data be saved?: Select the value type that the data will be saved to. This is automatically populated with the available value types bound to the database you are using.
-
-
Click Add Data Action to save the data action and return to the configuration panel. The new data action is shown in the Data Actions table. Add more data actions as required.
-
Click Save to save your changes and apply the data action(s) to the selected step.
A worked example - saving data to the database
In this example, a database save step is used to save the data for a new employee into an employee table in the database , whenever a new employee record is added in the flow.
-
An "Employee App Page" page step presents a user with a series of input fields that allows them to enter the details for a new employee. This data is stored in the "hubEmployeeObj" object value.

-
Once the user has submitted the details for the new employee, a "save to Hub" database save step takes the data stored in this "hubEmployeeObj" value and saves it into the "employeedata Golden Record" table in the database.
Adding an outcome
Outcomes can be added to a database save step.
Adding a listener
Outcomes can be added to a database save step.