a!keys( value )
Returns the keys of the provided map, dictionary, CDT, or record.
Keyword | Type | Description |
---|---|---|
|
Any Type |
The map, dictionary, CDT, or record whose keys should be returned. |
List
a!keys
cannot be used on lists or scalar values, such as text, integers, and dates. The value
parameter must be a collection such as a map, dictionary, CDT, or record.a!keys(value: a!map(a: 1, b: 2) )
{"a", "b"}
a!keys(value: a!map() )
{}
a!keys(value: {c: 3, d: 4} )
{"c", "d"}
In order to test the CDT examples, you will need to create a CDT with the same field names.
In these examples, there is a CDT called "Customer" with 3 fields on it: id, name, and age.
a!keys(value: type!Customer(id: 3, name: "John", age: 30))
{"id", "name", "age"}
a!keys(value: type!Customer())
{"id", "name", "age"}
In order to test the record examples, you will need to create a record type with the same field names. For record examples, use record field references instead of strings shown in the examples below.
In these examples, there is a record type called "Customer" with 3 fields on it: id, name, and age.
a!keys(value: recordType!Customer(id: 4, name: "Jane", age: 42))
{recordType!Customer.fields.id, recordType!Customer.fields.name, recordType!Customer.fields.age}
a!keys(value: recordType!Customer())
{}
In this example, the record type "Customer" now has a 1:1 relationship with the record type "Address" in addition to the existing fields: id, name, and age.
a!keys(value: recordType!Customer(id: 4, name: "Jane", age: 42, Address: recordType!Address( zip: 12345 )))
{recordType!Customer.fields.id, recordType!Customer.fields.name, recordType!Customer.fields.age, recordType!Customer.relationships.Address}
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Incompatible | |
Real-Time Custom Record Fields | Incompatible | |
Process Reports | Incompatible | You cannot use this function to configure a process report. |
Process Events | Incompatible | You cannot use this function to configure a process event node, such as a start event or timer event. |
a!keys Function