Skip to content
Datamapper, Omnistudio, Salesforce

How to use “Upsert Key” in Dataraptor Load

November 21, 2024

The Upsert Key in a Salesforce DataRaptor DataMapper is used to determine how Salesforce identifies whether a record should be updated or inserted during an upsert operation.

This is particularly useful for ensuring data consistency and preventing duplicate records.

How to Configure the Upsert Key in DataRaptor DataMapper

  1. Open the DataRaptor Load:

    • Navigate to the DataRaptor Load configuration in OmniStudio.
  2. Go to the Field Mappings Section:

    • In the Field Mapping section of the DataRaptor Load, you’ll map fields from the input JSON to Salesforce object fields.


  3. Select or Define the Upsert Key:

    • In the Upsert Key column, specify the field or fields to use as the key for the upsert operation. This field must be unique or indexed in Salesforce, such as Id, External Id, or a custom unique field.
  4. Check External ID Field Settings in Salesforce (if applicable):

    • If you’re using a custom field as the Upsert Key, ensure the field is marked as an External ID and Unique in Salesforce.
  5. Input Field Mapping:

    • Map the input JSON path to the Salesforce field in the Input JSON Path column.
    • Ensure the Upsert Key’s value is provided in the input JSON.
  6. Save and Test:

    • Save the DataRaptor configuration and test with different payloads to verify that records are either updated or inserted correctly based on the Upsert Key.

Note: By correctly configuring the Upsert Key, you can streamline data operations, maintain data integrity, and reduce the risk of duplicate records in Salesforce.

Keep Reading

Related Articles and Resources

Salesforce Revenue Cloud Mapping Fields from Quote to Quote Line
September 27, 2025

Salesforce Revenue Cloud Mapping Fields from Quote to Quote Line

Salesforce Revenue Cloud has proven to be a critical...

Embedding Standard Designer FlexCards in Lightning Web Components (LWC)
October 14, 2025

Embedding Standard Designer FlexCards in Lightning Web Components (LWC)

The namespace-flex-card-standard-runtime-wrapper component...

Working with Integration Procedure and FlexCards
October 27, 2024

Working with Integration Procedure and FlexCards

Things that we will cover Weather API — https://www...

A Beginner’s Guide to OmniStudio: Streamlining Your Salesforce Experience (FlexCards)
October 27, 2024

A Beginner’s Guide to OmniStudio: Streamlining Your Salesforce Experience (FlexCards)

What is Omnistudio OmniStudio is a powerful set of...

Getting Started with Salesforce FlexCards: A Beginner’s Guide
July 5, 2025

Getting Started with Salesforce FlexCards: A Beginner’s Guide

Salesforce OmniStudio offers a range of tools that allow...

Salesforce Revenue Cloud vs Industries CPQ
July 11, 2025

Salesforce Revenue Cloud vs Industries CPQ

This comparison helps team choose the right Salesforce...