Assign input values with scenarios

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.

Start block inputs

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.

Create a scenario

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:

  1. Create a new flow.

  2. Add one or more inputs to your Start block. The Manage & run scenarios button appears next to the Run button.

  3. Select Manage and run scenarios Manage & run scenarios > Create a scenario Create a scenario or Add a scenario 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.

  4. Enter data for each input field, or use the placeholder data.

  5. Select Save.

Run a flow using scenario data

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:

  1. Select Manage and run scenarios Manage & run scenarios.

  2. Hover over the scenario you want to use and select Run Run.

Edit a scenario

You can change and save the values in a scenario. To edit a scenario, do the following:

  1. Select Up icon Manage & run scenarios.

  2. Select the scenario you want to edit.

  3. Enter new values in the input fields.

  4. Select Save icon Save.

Delete a scenario

  1. Select Up icon Manage & run scenarios.

  2. Hover over the scenario you want to delete and select Options icon More actions > Delete.

Last modified: 2024/10/02