Create map
Overview
The create map deluge task is used to declare a map variable.
Syntax
To declare a map variable
To create a map variable with key value pairs
Parameter | Description |
---|---|
<variable> | Variable which will hold the key-value pairs. |
<key> | Key to hold a value. You can directly specify a key, or a variable, or a field value in the format input.<field_name>, or an expression, i.e. a combination of values, constants, variables, operators, functions and so on. Keys must be unique. If an existing key is specified again, the newly specified value will overwrite the existing value of that key, and a new key-value pair will not be appended. If a date value is specified without a time value, 00:00:00 will be added as the time value by default. Keys can be of any data-type |
<value> | Value to be assigned to the key. You can directly specify a value, or a variable, or a field value in the format input.<field_name>, or an expression, i.e. a combination of values, constants, variables, operators, functions and so on. If a date value is specified without a time value, 00:00:00 will be added as the time value by default. Values can be of any data-type. |
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 snippet creates a map variable with keys as "Product" and "Current Version", and values as "ZohoCreator" and 5 respectively.
2) The following snippet creates a map variable with a single key and a list a of its values.
3) The following snippet creates a map variable with one key-value pair and another key with list of values.