Create list
Overview
The create list deluge task is used to declare a list variable.
Syntax
To declare a list variable
To declare a list variable with a string element, or list elements
To create a list with elements
| Parameter | Description |
|---|---|
| <variable> | Variable which will hold the list elements. |
| <value> | Applicable data types are Text and List. Only one string value can be specified at a time. If the text value has a comma, words (or empty strings) on either side of the comma will be considered as individual list elements. |
| <element> | Elements to be added to the list. The elements can either be enclosed in curly brackets({}) or square brackets([]). Elements of different data-types can be accommodated in the same list. All data-types are applicable. |
This task can be used in the following events
| When a record is Created | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Created or Edited | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Edited | ||
| On Load | Yes | |
| On Validate | Yes | |
| On Success | Yes | |
| On User input | Yes | |
| Subform on add row | Yes | |
| Subform on delete row | Yes | |
| When a record is Deleted | ||
| On Validate | Yes | |
| On Success | Yes | |
| Other workflow events | ||
| On a scheduled date | Yes | |
| During approval process | Yes | |
| During payment process | Yes | |
| In a Custom Function | Yes | |
| In an Action item in report | Yes | |
Examples
1) The following sample snippet creates a list variable named "colors", and adds the elements "red","blue" and "green" to it.
2) The following sample snippet creates a list variable "listVar" and adds the elements 1(an integer) and "Harry"(string) to it.
listVar.add(1);
listVar.add("Harry");