Remove key
Overview
The remove key deluge task removes a specified key and its value from a specified map variable.
Syntax
<map_variable>.remove(<key>);
| Parameter | Description |
| <map_variable> | The map variable from which the specified key and its corresponding value will be removed. |
| <key> | The key which will be removed along with the value. If the specified key is not found, no error is encountered. 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 | |
Example
The following snippet removes the key-value pair "Version":5 from the map variable.
details = {"Company": "Zoho", "Product": "Creator", "Version":5}; details.remove("Version"); info details; // returns {"Company": "Zoho", "Product": "Creator"};