Clear map
Overview
The clear map deluge task empties a specified map variable by permanently removing all its key-value pairs.
Syntax
<map_variable>.clear();
Parameter | Description |
---|---|
<map_variable> | The map variable which will be emptied. 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 snippet removes all key-value pairs from the Company_details map variable.
Company_details={"Name":"Zoho","Products":{"Zoho Creator","Zoho Chat","Zoho CRM"};
Company_details.clear();
Company_details.clear();