---
schema_version: "1"
id: b294a484512a0367028c104860375f36a2890b8088209d86bb6eee9810a7d081
title: Interface ReferenceId
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforce-functions/functions/guide/javasdk/interfaces/java-referenceid.md
canonical_url: https://developer.salesforce.com/docs/platform/functions/guide/java-referenceid.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 329e23c038a80244bc4f4268ad6fa0e89059f287468ec8297562bc84b7c31402
products:
  - Salesforce Functions
---
# 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)`
