Interface ReferenceId


@Immutable public interface ReferenceId

References a record that will be created, deleted or modified in the future. It can be used to insert records that reference other records that are be created in the same UnitOfWork transaction.

All implementations must be immutable and therefore thread-safe.

See Also: UnitOfWorkBuilder.registerCreate(Record), UnitOfWorkBuilder.registerUpdate(Record), UnitOfWorkBuilder.registerDelete(String, String)

Product Retirement Announcement

Salesforce Functions is no longer available for purchase or renewal. To preserve the capabilities that Salesforce Functions provided to your org, deploy an alternative solution before your existing order term ends. See Salesforce Functions Retirement for more information on migrating your functions. Contact your Salesforce Account Executive for more information on Heroku.