Scenarios enable you to assign different sets of values to Start block inputs. With scenarios, you can define values for multiple inputs at a time to suit your current task — whether testing a new flow you are building or running a flow regularly. Scenarios are especially convenient when you're testing flows that require specific but different data.
You can add inputs to the Start block to receive data from a scenario. The Start block can then pass that data to other blocks as key-value pairs where the key is the input's name and the value is any data received by the input. If you are running a flow with Start block inputs but have not defined a scenario, the flow will generate placeholder data prior to running.
When you add inputs to the Start block, you can assign them values and save those values as a scenario for testing your flow. To create a scenario, do the following:
Add one or more inputs to your Start block. The Manage & run scenarios button appears next to the Run button.
Select Manage & run scenarios > Create a scenario or Add a scenario. The scenario editor appears with editable fields for each input in the Start block. By default, flows create placeholder data for each field when you create a new scenario.
Enter data for each input field, or use the placeholder data.
Select Save.
Once you've created a scenario, you can run the flow using the scenario's data as values assigned to the Start block's inputs. To run a flow using a scenario's data, do the following:
Select Manage & run scenarios.
Hover over the scenario you want to use and select Run.
You can change and save the values in a scenario. To edit a scenario, do the following:
Select Manage & run scenarios.
Select the scenario you want to edit.
Enter new values in the input fields.
Select Save.
Select Manage & run scenarios.
Hover over the scenario you want to delete and select More actions > Delete.
Last modified: 2024/10/02