OCLOperators externalId
Created by Peter on 2019-11-18 · Last edited by Vale.buyondo on 2025-12-13.
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
