Using a list as a system constant

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]

Sign In or Register to comment.