Salesforce and WordPress Integration using 2 free plugins
Tags: uncategorized
Published: 2022-12-01 02:54:48

---
title: Salesforce and WordPress Integration using 2 free plugins
published: true
date: 2022-11-27 20:20:34 UTC
tags: Uncategorized
canonical_url: https://davidloor.com/2022/11/27/salesforce-and-wordpress-integration-using-2-free-plugins/
---

![System Integration](https://davidloor.com/wp-content/uploads/2022/11/2850276.jpg)

In this post, you will learn how to integrate WordPress Websites and the Salesforce CRM using free WordPress plugins and following the plugins’ documentation.

## WordPress and Salesforce

As of today, the [CMS WordPress](https://wordpress.org/about/) is being used in 43% of the Websites worldwide, and [Salesforce](https://www.salesforce.com/) is one of the leading [Customer Relationship Management (CRM)](https://www.salesforce.com/crm/what-is-crm/) platform.

<iframe loading="lazy" title="What is Salesforce? | Salesforce Explained Ep. 1" width="800" height="450" src="https://www.youtube.com/embed/xx2sK-QiBjw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

_Learn more about Salesforce_

<iframe loading="lazy" title="What Is WordPress?" width="800" height="450" src="https://www.youtube.com/embed/cT4NlI00hMw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

_Learn more about WordPress_

## Why integrate WordPress and Salesforce

You can use your WordPress website to collect information from your customers like, donations, account registrations, subscriptions to newsletter, and that information can be sent to Salesforce automatically.

Your WordPress website can also pull and display data stored in Salesforce. Lists of members, chapters, events. Assign WordPress roles to the users based on badges they have on Salesforce, and accordingly set permissions to the content in the website.

You will have better data quality, consistency and your staff will spend less time on data administration.

## The required ingredients to do the integration

The two main plugins needed are:

1. 
### Object Sync for Salesforce: 

  - This plugin will allow us to connect the WordPress website with Salesforce and do the mapping between their objects and the corresponding fields.
  - Download it from here: [https://wordpress.org/plugins/object-sync-for-salesforce/](https://wordpress.org/plugins/object-sync-for-salesforce/)
2. 
### Action Scheduler:

  - This plugin will help us to make sure that the scheduled tasks created by the **_object sync for salesforce_** plugin are running, and also you will be able to see all these scheduled tasks from https:// **my-nice-site.ddev.site** /wp-admin/tools.php?page=action-scheduler
  - Download it from here: [https://wordpress.org/plugins/action-scheduler/](https://wordpress.org/plugins/action-scheduler/)

As of today, the following patch needs to be applied to the **Object Sync for Salesforce** plugin to make its configuration page to work: [https://github.com/woocommerce/action-scheduler/pull/883/files](https://github.com/woocommerce/action-scheduler/pull/883/files)

I also recommend to do the integration in a local site. You can follow the instruction to setup a local site using [ddev](https://ddev.com/) in this [link](https://dev.to/davo20019/how-to-setup-a-wordpress-or-drupal-site-locally-with-ddev-4035-temp-slug-181423).

Working directly in a Production Salesforce instance is never a good idea, so you should have a sandbox instance setup, so you can use it to test the integration. You can read the documentation in the following [link](https://help.salesforce.com/s/articleView?id=sf.create_test_instance.htm&type=5) to understand the different types of sandboxes and their corresponding licenses.

## What one needs to know to do the integration

1. Install the _**[Object Sync for Salesforce](https://wordpress.org/plugins/object-sync-for-salesforce/)**_ and **_[Action Scheduler](https://wordpress.org/plugins/action-scheduler/)_** plugins. 
2. Follow the steps from this [link](https://github.com/MinnPost/object-sync-for-salesforce/blob/master/docs/initial-setup.md) to create a new App in salesforce and connect the plugin **Object Sync for Salesforce** to Salesforce.
3. You will need to create the mapping from a post type in WordPress to an Object in Salesforce following the instructions from this [link](https://github.com/MinnPost/object-sync-for-salesforce/blob/master/docs/mapping.md)
4. If you need to re-sync all the mapped objects, you can go to https:// **my-nice-site.ddev.site** /wp-admin/options.php, find the variables that start with **object\_sync\_for\_salesforce\_pull\_last\_sync** and update its value with a timestamp in the past. You can use this [site](https://www.epochconverter.com/) to get a timestamp from a human readable date.