Put
Overview
The put deluge task inserts a specified key-value pair in a pre-defined map variable.
Syntax
Parameter | Description |
---|---|
<map_variable> | Map variable to which the new key-value pair will be added. Data type is Key-value. |
<key> | Key to be inserted in the map. 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 adds "Name" and "Zoho" as key and value respectively to the map variable companyDetails.
companyDetails.put( "Name","Zoho" );
2) The following script adds a single key and a list of values to the map variable companyDetails.