To save data into two objects using DataMapper in Salesforce OmniStudio, you would typically follow these steps to map and store data into different Salesforce objects (or external systems). Here’s a step-by-step guide to using DataMapper to map data to two separate Salesforce objects:
Step 1: Define the DataMapper
Start by creating a DataMapper that can handle the transformation and mapping of data between your source (could be an API, external system, or internal data) and the two Salesforce objects.
- Navigate to OmniStudio App: Open Salesforce OmniStudio and go to OmniStudio DataRaptor.
- Create a DataMapper: In the OmniStudio DataRaptor app, create a new DataMapper.

Step 2: Define the Source Data
You need to define the source of your data, which could be an API call, a FlexCard input, or any other data source. Let’s assume that the source data is coming from an external system or API.
- For this example, let’s assume the source data includes customer information (to save in Contact object) and notice information (to save in Notice object).
The source data might look something like this

Step 3: Map the Data
Now, map the source data to the two Salesforce objects (Contact and Notice).
Contact Object Mapping

Notice Object Mapping

Step 3: Save Data to Salesforce Objects
Once everything is done, click on excecute button and you will see data is saved into two objects. See below screenshot

Step 8: Test and Validate
Test the entire flow to ensure that:
- The source data is correctly mapped to the two objects.
- The data is being saved correctly into Salesforce.
- Any transformations or business logic is applied as needed.