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 expression-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

Examples

NOTE: Since record type constants are specific to each system, this example will not evaluate in your Test Rules interface. Use it only as a reference.

a!toRecordIdentifier(recordType: cons!myRecordType, 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

RecordType: 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.

FEEDBACK