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

Transaction Management in Salesforce: The Complete Expert’s Guide to Data Integrity, Consistency, and Advanced Implementation
December 29, 2025

Transaction Management in Salesforce: The Complete Expert’s Guide to Data Integrity, Consistency, and Advanced Implementation

If you’re working with Salesforce – whether&...

Products catalog Salesforce Revenue Cloud Advance
September 27, 2025

Products catalog Salesforce Revenue Cloud Advance

In the following article we’re going to present a Product...

Learn Omnistudio Datamapper Salesforce | Tutorial on Salesforce Datamapper Omnistudio
October 6, 2024

Learn Omnistudio Datamapper Salesforce | Tutorial on Salesforce Datamapper Omnistudio

Configure Omnistudio DataMapper Transform data JSON ...

Quick Start: Build Your First Agent with Agentforce Salesforce
October 30, 2024

Quick Start: Build Your First Agent with Agentforce Salesforce

Salesforce’s Agentforce is a powerful tool that allows...

Salesforce Winter ’26 Release: What Changed and Why It Matters
November 28, 2025

Salesforce Winter ’26 Release: What Changed and Why It Matters

TL;DR: Winter ’26 is a big one. Agentforce (autonomous AI...

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...