Key of a dictionary entry
Syntax
$entry.getKey()
Description
Returns the key of a single dictionary entry. The entries of a dictionary can be accessed with the map() and filter() functions.
Parameters
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
entry | Business object | Dictionary entry | yes |
Return value
type: Number/string/business object
The key of the given dictionary entry.
Examples
{
dict = {
"all": "alle",
"some": "manche",
"none": "keine"
};
$dict.map(entry -> getKey($entry) + " = " + $entry.getValue())
}
Output: A list of entries ["some = some", "none = none", "all = all"].