Search Results :

×


Configure WordPress – Salesforce Bi-directional Object Data Sync


The Object Data Sync For Salesforce plugin synchronizes WordPress objects with selected object/record in Salesforce and keeps Salesforce object/record in sync with the WordPress.
Here we will go through a guide to configure WordPress - Salesforce Bi-directional Object Data Sync.

To configure Salesforce Sync with WordPress, you will need to install the WordPress Object Data Sync for Salesforce plugin.



Salesforce Integrations

Integrate WordPress, Drupal, Joomla, and any other third party app with Salesforce, for seamless SSO and Object / data synchronization.

Salesforce Integrations   

It can also be called as One Click Authorization mechanism. In this method of authorization you don't need client credentials (like Consumer Key or Consumer Secret) to connect to Salesforce.

  • Select your Salesforce Environment to determine Salesforce URL. If you have a custom URL select the last option.
  • Now, click on Save Selected Environment button to save your environment.
Configure Salesforce for Object sync - connected app

  • Now, click on Connect to Salesforce button.
Configure Salesforce for Object sync - connected app

  • You will be prompted to enter your Salesforce credentials, once entered, you will be asked for certain permissions, please click on Allow to connect to Salesforce.
  • NOTE: Your user must have System Administrator access to your Salesforce to provide consent for the above step.

Configure Salesforce for Object sync - Allow Access

  • After clicking Allow, you will successfully connect to Salesforce. You will see the following screen confirming your connection to Salesforce.
  • Click on Next to continue.
Configure Salesforce for Object sync - Successful

Refresh Token Policy for Automatic (Pre-connected) App

  • By default, miniOrange is installed with an indefinite refresh token. However, we have seen some Salesforce apps with different security policies that cause the miniOrange app to get installed with a temporary refresh token. That means that when the refresh token expires, you’ll need to click the Re-authorize With Salesforce link again.
  • Now, to prevent the refresh token from expiring go to your Salesforce account and navigate to Setup at the top right corner of the page.
Configure Salesforce for Object sync - refresh token setup

  • Go to Apps>>Connected Apps OAuth Usage under platform tools from the left panel and click Install.
Configure Salesforce for Object sync - App

  • Now, click on Manage App Policies adjacent to the miniOrange application as shown below:
Configure Salesforce for Object sync - refresh token manage app policies

  • Click on Edit Policies.
Configure Salesforce for Object sync - refresh token edit policies

  • Under the OAuth Policies section, ensure you have selected the Refresh token is valid until revoked option in the Refresh Token Policy checkbox.
Configure Salesforce for Object sync - refresh token

Follow the steps below to connect to salesforce using manual/custom app.

  • Go to Salesforce login page and login as an Administrator.
  • You will be represented with the home screen of Salesforce.
Configure Salesforce for Object sync - Home Screen

  • Navigate to the Setup tab.
Configure Salesforce for Object sync - setup tab


  • Under the PLATFORM TOOLS section, navigate to the Apps in the left menu.
  • Select the App Manager option.
Configure Salesforce for Object sync - AppManager

  • In the same window, head to the top right corner and select the option New Connected App to create new application.
Configure Salesforce for Object sync - NewApp

  • Fill the required information in below boxes.
  • Under the API (Enable OAuth Settings), check the option of Enable OAuth settings.
Configure Salesforce for Object sync - OSuth Setting

Connected App Name Enter any name of your choice.
NOTE: The Connected App Name can only contain underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.
API Name Enter any name of your choice. By default it just copies the Connected App Name.
NOTE: The API Name can only contain underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.
Callback URL Enter your WordPress Site URL.
NOTE: Make sure that URL must be present in https:// format.
Contact Email Enter any email of your choice.
Available OAuth Scopes Select Manage user data via APIs (api) and Perform requests on your behalf at any time (refresh_token, offline_access) options.
  • For the WordPress site URL, you can navigate to the plugin’s Manage Application tab and can copy the Redirect URI as shown below:
Configure Salesforce for Object Sync - Salesforce manual callback url

Configure Salesforce for Object sync - Callback URL

  • Please make sure to turn off the Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows checkbox.
Configure Salesforce for Object sync - Require Proof Key

  • Then, click on SAVE.
  • Now the user will be prompted with the confirmation page, click on Continue and move on next page.
Configure Salesforce for Object sync - Continue

  • After this user will be able to view the app they configured, click on Manage Consumer Details button to get Consumer Key and Consumer Secret.
Configure Salesforce for Object sync - Consumer Key

  • You might get a 2FA prompt depending on the login policies, enter the OTP or 2FA prompt if asked, to get Consumer Key and Consumer Secret which are necessary to enable a connection between Salesforce and WordPress.
Configure Salesforce for Object sync - Consumerkey

Only for Manual Application Type

  • Navigate to the WP Object Salesforce Sync plugin.
Configure Salesforce for Object sync - Consumerkey

  • Under the tab Manage Application, paste the Consumer Key and Consumer Secret from the Salesforce App.
Select Environment Select your Salesforce Environment to determine Salesforce URL. If you have a custom URL select the last option
Note: If you use custom url make sure it ends in .salesforce.com.
Authorization URL If you select Custom URL option in the previous option you will need to provide the link here.
Application ID Paste the Consumer Key from Salesforce App.
Client Secrets Paste the Consumer Secret from the Salesforce App.
Redirect URI Enter the Callback URL from the Salesforce App.
Scopes api refresh_token
  • Click on Save Configuration.
  • Click on Connect to Salesforce button. You will be prompted to enter your salesforce credentials, once entered, you will be asked for certain permissions, please click on Allow to connect to Salesforce.
Configure Salesforce - WordPress Object Sync plugin- Manageapp

  • After clicking Allow, you will successfully connect to Salesforce. You will see the following screen confirming your connection to Salesforce.
  • Click on Next to continue.
Configure Salesforce - WordPress Object Sync plugin- Manageapp


Note and Contact Us - SSO between two WordPress sites

Note: If you want to sync records from Salesforce to WordPress, refer to the guide linked here.

  • Under the Object Mapping tab, you can click on the Add Object Mapping button to map a new Object.
WP object Salesforce Sync- Object Mapping

  • In the first section, select the WordPress Object (User & Post), the fields of this object will be mapped to a Salesforce object.
  • Note: With the free version of the Object data sync for Salesforce plugin, you can only sync data from WordPress Users/Posts to Salesforce.

WP object Salesforce Sync- Object Mapping

  • In the second section, select the direction of sync as Sync from WordPress to Salesforce.
  • Note: You can configure the plugin to sync data from Salesforce to WordPress by following the guide linked here.

WP object Salesforce Sync- Object Mapping

  • In the third section, select the Salesforce object to which you want to push the WordPress data.
WP object Salesforce Sync- Object Mapping

  • In the fourth section, we will be mapping the fields of Salesforce objects with WordPress.
  • You can click the Add Salesforce Field button to add a new mapping record.
  • If you don't require a field map you can simply press the button next to it to delete it.
WP object Salesforce Sync- Object Mapping

  • Finally, you can click the Save Object Mapping button available in this section to save the entire mapping.

Push WordPress Users:

  • Click on Users on the Left panel of your WordPress site.
  • From the list of users, select the users you want to sync from WordPress to Salesforce.
Configure Salesforce for Object sync - meta box push to salesforce

  • Click on the Bulk actions dropdown and select Sync Users to Salesforce.
  • The selected users will be created/updated in the Salesforce Object as per the mapping saved.
Configure Salesforce for Object sync - meta box push to salesforce

Push WordPress Posts:

  • Click on Posts on the Left panel of your WordPress site.
  • From the list of posts, select the posts you want to sync from WordPress to salesforce.
Configure Salesforce for Object sync - meta box push to salesforce

  • Click on the Bulk actions dropdown and select Sync Posts to Salesforce.
  • The selected posts will be created/updated in the Salesforce Object as per the mapping saved.
Configure Salesforce for Object sync - meta box push to salesforce

NOTE: Real time sync allows you to sync WordPress users/posts with Salesforce when they are created/updated in WordPress.

  • Navigate to the Advanced Sync Options tab of the Object data Sync For Salesforce plugin.
  • Under the Realtime Sync section, Enable the Enable Real Time Sync toggle.
  • Click on the Save Configuration button.
  • The user will be created/updated in real-time in the Salesforce Object as per the mapping saved.
Configure Salesforce for Object sync - Real Time Sync To salesforce


You have successfully configured WordPress (WP) Salesforce Object Sync.



If you are looking for anything which you cannot find, please drop us an email on salesforcesupport@xecurify.com


ADFS_sso ×
Hello there!

Need Help? We are right here!

support