🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators externalId

If you need the reverse, see: OCLOperators_objectfromExternalId

The externalId operator returns the external identifier for the object it is called on.This identifier is generated by the configuredIExternalIdService and is typically used for integration, synchronization, or export scenarios.

Syntax

object.externalId

Examples

Customer.allInstances->first.externalId

Returns the external ID for the first Customer object.

Customer.allInstances->collect(c | c.externalId)

Collect external IDs for all Customers, this returns a list of external IDs