Loading
Ongoing maintenance for Salesforce HelpRead More
Salesforce Enforces New Security Requirements in Summer 2026Read More
About Salesforce Data 360
Composite Key

Composite Key

Use a composite key to uniquely identify a record.

In Data Cloud, you can assign composite keys only for Bring Your Own Lake (BYOL) data shares. To assign a composite key, use one of these options.

  • Search for and select the appropriate fields in the data source table to designate as a composite key.
    Composite key using clicks to select multiple fields.
  • In cases where the data source table has an existing primary key or not all rows have unique values, use the formula field to define a formula that can combine two or more source fields to generate a composite key.
    Note
    Note A formula is ideal for file-based data sources such as Amazon S3, Google Cloud Storage, Microsoft Azure, and Secure File Transfer (STFP).
    For example, in this Sales Order Detail database, not all rows have unique values. By combining the Order ID and SKU fields, you can use a formula to generate a composite key and configure it as the primary key for your data source.
    Composite key example data

    Use the formula field functionality to define a formula that can transform your fields to provide a composite key.

    Composite key example formula.

    After you create the formula field “OrderID_SKU_Composite”, it can be configured as the primary key for your data source.

    Composite key selection using a primary key.
 
Loading
Salesforce Help | Article