Put

Put

Table of Contents

Overview

The put deluge task inserts a specified key-value pair in a pre-defined map variable.

Syntax

<map_variable>.put(<key>, <value>);
ParameterDescription
<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 LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Created or Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Edited
On LoadYes
On ValidateYes
On SuccessYes
On User inputYes
Subform on add rowYes
Subform on delete rowYes
When a record is Deleted
On ValidateYes
On SuccessYes
Other workflow events
On a scheduled dateYes
During approval processYes
During payment processYes
In a Custom FunctionYes
In an Action item in reportYes

Examples

1) The following snippet adds "Name" and "Zoho" as key and value respectively to the map variable companyDetails.

companyDetails=map();
companyDetails.put( "Name","Zoho" );

2) The following script adds a single key and a list of values to the map variable companyDetails.

companyDetails.put("Team",{"Zoho Creator","Zoho Chat","Zoho CRM"});

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com