a!toRecordIdentifier() Function

Matches record IDs with their record type to return a value of type Record Identifier for each record ID passed to the function.

Syntax

a!toRecordIdentifier( recordType, identifier )

recordType (RecordType): The record type that contains the record.

identifier (Any Type Array): Individual record IDs within the record type.

Returns

Record Identifier Array

Notes

For entity-backed records, record ID is the primary key in the data store entity.

For process-backed records, record ID is the ID for the process.

For service-backed records, record ID is the value returned to the ID field of the DataSubset produced by the record's source expression.

See also: DataSubset

Example

This example is designed to illustrate how to use the torecordidentifier() function in the Expression Rule Interface.

NOTE: Record type object references are specific to each environment. If you copy and paste this example into the Expression editor, it will not evaluate in your Test Rules interface. Use it as a references only.

a!toRecordIdentifier(recordType: recordType!Employee, identifier: {"536870111", "536870555"}) returns an array of two Record Identifier values with the first pointing to the first record in the identifiers list and the second pointing to the second record.

See Also

Record Type: Use this data type to indicate the record type for the record(s) you want URLs for.

Record Identifier: This is the data type of the function's return value.

Post Event to Feed Smart Service and Post System Event to Feed Smart Service: Use these smart services to tag records to business and system events using the return of this function as the value for Record Tags.

Open in Github Built: Thu, Feb 23, 2023 (02:59:22 PM)

On This Page

FEEDBACK