Put all keys
Overview
The put all keys deluge task inserts all key-value pairs present in one map variable(map_variable2) to another map variable(map_variable1).
Syntax
<map_variable1>.putAll(<map_variable2>);
| Parameter | Description |
|---|---|
| <map_variable1> | The map variable to which the key-value pairs will be added. Data type is Key-value. |
| <map_variable2> | If a duplicate key is specified, its new value will overwrite the existing value in <map_variable1>, and the new key-value pair will not be added. Data type is Key-value. |
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 | |
Example
The following snippets add key-value pairs present in city_list2 to city_list1
city_list1 = {"Anchorage":"99501","Phoenix":"85001"}; city_list2 = {"Little Rock":"72201","Beverly Hills":"90213"}; city_list1.putAll(city_list2); info city_list1; //Returns {"Anchorage":"99501","Phoenix":"85001","Little Rock":"72201","Beverly Hills":"90213"}