Creating Drop Down List Options from Flow Output
  • 09 Jul 2021
  • 2 Minutes to read
  • Dark
    Light

Creating Drop Down List Options from Flow Output

  • Dark
    Light

Article Summary

Overview

In a Form, drop-down list options can be created from several sources. These sources include populated data from workflows, specifying a static list directly in the Form Designer, or running a workflow to populate a list of choices. The following example will show how to configure drop-down options from a Flow to output the required information for the drop-down options.

Example

The example Flow will display a Form containing a drop-down list and a button. In the drop-down list, users will be able to select from a list of all available accounts. A Flow will populate this drop-down list. Another Flow will be created to display the Form. 


Begin the example by creating the Flow, which will retrieve a list of system accounts. 

  1. In the Designer Project, select the Create Flow button. 
  2. Select Flow, name the Flow, then select CREATE
  3. Select the Done outcome path of the Start step.
  4. In the Add After dialog, expand Integrations > All Integrations > Internal Services > Account Service, select the GetAll step.
    1. Select ADD.

  5. Connect the GetAll step to the End step. 
  6. Select the End step. In the Properties panel, under Data > Pick From Current Data, select GetAll_Output.
  7. This completes the first Flow, save and close the Flow Designer.

Build the Main Flow

  1. In the Designer Folder, select the Create Flow button.
  2. Select Flow, name the Flow, then select CREATE
  3. Select the Done outcome path of the Start step.
  4. In the Add After dialog, select the Show Form step in the Favorite Steps category.
    1. Select ADD.
  5. With the Show Form step selected, in the Properties panel, select PICK OR CREATE FORM.
  6. Select CREATE under Create New.
    1. Choose Form.
    2. Name the Form.
    3. Select CREATE.

  7. In the Form Designer, drag and drop a Button and the Drop Down List onto the Form.
  8. Select the Drop-Down List, in the Properties > Input Data section, under the Type selector—search for and select Account.
    1. Under Display Field, specify EmailAddress.
    2. Change the List Input Source to Flow.
  9. Select PICK FLOW ID
    1. In the Create or Pick Flow dialog, select PICK under Pick Existing.
    2. Choose the Get Accounts Flow, then select PICK.

  10. In the Output Data section, select Output only.
    1. Rename Selected Item(s) Data Name to "Selected Email".
  11. Save and Close the Form Designer.

  12.  Select the Done outcome path of the Show Form step.
  13. In the Add After dialog, select the Show Popup step in the Favorite Steps category.
    1. Select ADD.
    2. This is to show the selected item from the drop-down menu is available to use in the Flow.
  14. Navigate to the Show Popup step Properties
    1. Under Inputs > Subject, change the mapping type to Constant and type "Selected Email".
    2. Under Inputs > Message, select Pick, and choose Selected Email from the Pick Data For Input dialog.
  15. Connect the Done path to the End step.

Debug

  1. Select the Debug link located in the top toolbar.
  2. Select Start Debugging.
  3. The Form that holds the Drop Down List is displayed.
  4. Select an account email and click the Button to apply the changes.
  5. The Popup will display in the upper right corner, showing which account was chosen.
This is just an example of creating a drop-down list and showing that the selected data is available to use in the flow. Please use this information to help create business logic that fits your needs. 



Was this article helpful?