Using a list as a system constant
Comments
-
[font=Calibri, sans-serif]I am not seeing a way to create a system constant that is a list of type string. Is this possible? Lists are not one of the selectable types for FlowConstants. And when I try to create constant flow to generate a list, it forces the output to be of type “Object” and then I can’t use it as a list in another flow. Is there a way to generate a constant that is a list of type string, and then reference it other flows?[/font]
-
[font=Roboto, Arial, Helvetica, sans-serif]To have a list as a system constant, create a Lookup List flow and declare your constant list in a Create Data step. You can then map the list into the Object output. This Lookup List flow will now appear alongside Flow Data & System Constants in mapping editors. The list itself will appear under [myLookupListFlow] > Sync Root. I have attached a demonstration of using a Lookup List flow to provide a list of strings as a constant input source for you to [/font][url=https://documentation.decisions.com/docs/exporting-and-importing-overview]import[/url][font=Roboto, Arial, Helvetica, sans-serif] and review. It is also possible to use [/font][url=https://documentation.decisions.com/docs/type-lookup-list]datatypes as Lookup Lists[/url][font=Roboto, Arial, Helvetica, sans-serif].[/font]
[font=Roboto, Arial, Helvetica, sans-serif]
[/font]
[font=Roboto, Arial, Helvetica, sans-serif]The string list value in your lookup list will be under the dataname Sync Root. Its type is shown under its dataname in grey as String[] (where [ ] denotes a list/array). Selecting the Sync Root value will map the list of strings from your lookup list to its intended location.[/font]
[font=Roboto, Arial, Helvetica, sans-serif]
[/font]
[font=Roboto, Arial, Helvetica, sans-serif]Ive attached a small demo project with a Lookup List and a flow referencing it.[/font]
Howdy, Stranger!
Categories
- 4.1K All Categories
- 60 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions