How to use Value Lists in a Flow
- 18 Jun 2021
- 1 Minute to read
- Print
- DarkLight
This documentation version is deprecated, please click here for the latest version.
How to use Value Lists in a Flow
- Updated on 18 Jun 2021
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
A Value List is a Data Structure that contains an enumerated list of strings like those found in a drop down menu. These can be defined statically or as a string list within a component. To make a list that is universally accessible by all Flows you can create a Value List.
Example
In this example, create a simple value list representing task priorities. Create a Flow to use the list and then execute the Flow.
- Navigate to a Designer Folder.
- To create a new Value List, select CREATE DATA TYPES/INTEGRATIONS.
- Under User Defined Types and select Value List from the menu.
- In the Add Value List [Enum] dialog, set the Type Name as Priority Level.
- Next, add items to the Value List. Select the Bulk Add option.
- Select DONE, and then select CREATE VALUE LIST.
- The Value List is now available for use.NoteIt is important to collect the Data Type Name for this list. It will be used when the Flow is created. To find the data type's full name, select the newly created value list Entity and view the detailed information in the Properties Panel on the bottom right corner of the screen.
- Navigate to a Designer Folder and click on the CREATE FLOW button.
- In the resulting New Flow dialog, name the Flow and select CREATE.
- The first step is to get the Value List that was just created.
- In the Flow Designer, expand the Integrations > All Integrations > Internal Services > Data Structure Services categories and select the Get Enum Values By Name component.
- Select ADD to add it to the workspace.
- Select the Get Enum Values By Name step and under Inputs > fullName define the Mapping Type as Constant.
- In the Value field, enter the Data Type Full Name, which in this example is "Designers.DataStructures.PriorityLevel."
- To verify the Flow is properly configured, click on the Debugbutton at the top of the screen.
- When the debugger finishes, view the Input/Output Data on the Get Enum Values By Name step. Notice how the Value List is available in the Flow.
Was this article helpful?