Choose where you’d like to start

keys

Overview

The keys function returns the keys (from key value pairs), or elements, present in a collection.

Return Type

  • LIST

Syntax

<variable> = <collectionVariable>.keys();

where,

ParameterData typeDescription
<variable>LISTVariable which will hold the returned list.
<collectionVariable>COLLECTION

The variable from which the keys or elements will be returned.

Examples 

 productVersion = collection("Creator" : 5, "CRM" : 2, "Mail" : 8);
 info productVersion.keys(); // returns "Creator", "CRM", "Mail"
 products = collection("Creator", "CRM", "Mail");
 info products.keys(); // returns "Creator", "CRM", "Mail"

Get Started Now

Execute