Update a Record in Salesforce Core using a Non-captured Key
Follow the steps below to update a record in Salesforce Core using a non-captured object identifier.
For example, you may want to update a Contact record in Salesforce Core with a phone number that has been collected by MXO but you do not want to capture the Customer's Contact ID, instead you want to use an email address which has been captured already.
Step 1: Create a Salesforce Data Adapter
In ONE, create a Salesforce Data Adapter to enable communication between MXO and Salesforce. Use the following settings:
Field | Description |
---|---|
Attribute To Use As A Key | Attribute containing the customer's email address.In our example, this is the Email Address attribute. |
SOQL Query |
|
List | false |
Username | A valid Salesforce username |
Password | A valid Salesforce password |
Security token | A valid Salesforce security token |
Key | The email address of an existing contact in Salesforce to test the integration. |
For more information, see Configure the Salesforce Data Adapter in MXO.
Step 2: Create a Push Structure
Create a Push Structure to update the customer's phone number in Salesforce Core.
For our scenario, we will set up our structure as follows:
Field | Description |
---|---|
Structure Name | Update customer phone number |
This Push Structure will be used to: | Update an object in SF - By Email |
Required Attributes | Object Type = "Contact"Object ID = "Id" |
We will set up the details of our Structure, as follows:
Type | Name | Value |
---|---|---|
Data Attribute | HomePhone | Phone Number |
Step 3: Create a Push Action
Create a Push Action that references your Push Data Structure, configuring the Action as per your requirements for eligibility etc.
For our scenario, we will set up Our Action as follows:
Field | Description |
---|---|
Name | Update customer phone number |
Structure | Update customer phone number |
Step 4: Create an Offline Optimization Point
Create an Offline Optimization Point that tells MXO to send data about updated phone numbers to Salesforce Core.
Field | Description |
---|---|
Optimization Point type | Offline |
Name | Update phone number |
Offline Action | Update customer phone number |
Step 5: Trigger the Push Action to send updated data to Salesforce
Trigger the Push Action using the Offline Optimization Point configured for the necessary Interaction Points, to send details about the updated customer phone number to Salesforce Core.