How to Connect Salesforce to WordPress

#Overview

Note: To use WP Fusion with Salesforce, you will need API access.

Editions with API Access:

  • Enterprise Edition
  • Unlimited Edition
  • Developer Edition
  • Performance Edition

Editions without API Access:

  • Group Edition
  • Essentials Edition

In this guide, you will learn how to install WP Fusion and set up a direct connection to integrate your WordPress website with your Salesforce account.

To get started install and activate the WP Fusion plugin, then navigate to Settings » WP Fusion.

From the ‘Select Your CRM’ list choose ‘Salesforce’.

Screenshot of the WP Fusion Settings page highlighting CRM integration options, including selecting a CRM like Salesforce and a button to authorize with it. Theres a section for entering a license key, with Save Changes and Deactivate License buttons neatly displayed.

Click ‘Authorize with Salesforce’ and generate access and refresh tokens for your website.

A digital permission screen with the WP Fusion (OAuth) logo requests access to identity URL service and user data via APIs for CRM integration, offering Deny or Allow options. The cursor hovers over the Allow button.

Allow WP Fusion (OAuth).

Once the connection is completed, click Save Changes below to save the changes.

That’s it! Your site is connected, and new WordPress users and customers will automatically be synced with Salesforce in real time.

Important: Complete the app installation in Salesforce.

WP Fusion is now connected to Salesforce, but the access will expire when your refresh token expires.

To prevent the refresh token from expiring, go to Salesforce and navigate to Setup » Connected Apps OAuth Usage and click Install next to WP Fusion.

The Salesforce setup page displays Connected Apps OAuth Usage, featuring a single app: WP Fusion (OAuth). This tool seamlessly integrates your WordPress site with Salesforce CRM, showing one user and no active sessions.

#Refresh Token Policy

By default WP Fusion is installed with an indefinite refresh token.

However, we have seen some Salesforce apps with different security policies that cause the WP Fusion app to get installed with a temporary refresh token.

That means that when the refresh token expires, you’ll need to click the Reauthorize With Salesforce link again.

To fix this, head to Settings » Connected Apps » WP Fusion and make sure the Refresh Token Policy is set to Refresh token is valid until revoked.

Screenshot of the WP Fusion (OAuth) application settings page displaying CRM integration features. The interface highlights OAuth policies configurations like allowed users, refresh token policies, and session policies. Enforce IP restrictions and Refresh token doesnt expire are selected.

#Connected sessions limit

Note: Salesforce limits the total number of connected apps to four per a single user account. If you add a fifth WP Fusion site, then the oldest connected site will lose its refresh token, and the API connection will break.

You can monitor this by going to the Connected App User’s Usage page in the Salesforce admin, and then clicking the number in the User Count column in the WP Fusion (OAuth) row to see the users who have authorized that app.

Screenshot of a web page titled Connected Apps OAuth Usage featuring apps like Community, Partner Signup, and Salesforce Help. Options include blocking or managing app policies with seamless WP Fusion CRM integration. Navigation links on the left guide you to setup and connected apps.
The Connected Apps OAuth Usage page shows the apps connected to your Salesforce instance. Click the number in the User Count column to access the Connected Apps OAuth Usage page.

Then you can click on an individual user’s email address to access their Advanced User Details page.

Screenshot of the Advanced User Details page highlights a table under OAuth Apps with columns for app name, creation date, last used date, application, and OAuth app ID. Notably absent are managers in the role hierarchy—a perfect opportunity to leverage WP Fusion CRM integration for streamlined oversight.

Under OAuth Apps you will see the total number of apps installed.

In the screenshot above, WP Fusion has been installed four times by that user, so if it is installed on a fifth site, the oldest refresh token from 4/4/2024 would be revoked, and that site would be disconnected.

(The Use Count counts the number of times the access token has been refreshed, and doesn’t contribute to the connected sessions limit).

If you need to use WP Fusion on more than four sites connected to the same Salesforce account, we recommend creating a new admin user and using that user for the initial OAuth authorization.

#Tags with Salesforce

WP Fusion gives you a few options for segmenting your Salesforce contact records— topics, tags, and picklist values. For more information see our tutorial on Tags with Salesforce.

#Object type

By default WP Fusion interfaces with the Contacts object in Salesforce. This can be changed by clicking the Object Type dropdown on the setup tab.

Screenshot of the Salesforce setup options

After changing the object type you should click Refresh Available Topics & Fields to load the fields for the new object type.

#Record type

Salesforce supports using record types to further segment contacts (or other objects) within your organization. Here you can select a record type for new contacts created by WP Fusion.

If you’ve just created a new record type in Salesforce, click the blue Refresh Available Topics and Fields button and reload the page to load the updated record types.

After changing the Object Type, click Refresh Available Topics and Fields and save the settings to load the available record types for that object.

#Webhooks / Outbound Messages

Using outbound messages in Salesforce flows, you can automatically sync topic (tag) changes and contact updates from Salesforce back to WordPress. You can even import new users based on HighLevel contacts.

Diagram of a flow builder illustrating a record-triggered flow with WP Fusion CRM integration. Steps include Run Immediately, Update Webhook Action, and End. Debug details show a completed run with start and finish timestamps, plus inputs.
The flow debugging tool lets you test each step in your flow with sample contact edits.

The Salesforce setup screen displays the Update Webhook for outbound messages, seamlessly incorporating WP Fusion CRM integration. Fields like name, unique name, description, endpoint URL, and user are shown. The interface lists available fields with some already selected for the message.

For more information, see the documentation on Salesforce Webhooks.

#Enhanced Ecommerce

WP Fusion’s Enhanced Ecommerce Addon (available for Plus and Professional license holders) supports sending ecommerce transaction data as Orders to your Salesforce account for sales made in WooCommerce and other popular ecommerce plugins.

Screenshot of a Salesforce order page featuring WP Fusion CRM integration, showcasing account details, product information, order history, activity feed, and notes. The page includes options for new orders, editing, and marking status as complete.
Orders appear in Salesforce with their details and order items.
The Salesforce interface displays an order for a product titled Album, with WP Fusion CRM integration. It details a unit price of ₦12.00, quantity of 1, and a total price of ₦12.00. Order number 0000008 was modified by Jack Arturo on 5/17/2023.
Order items are associated with the order and the corresponding pricebook entry.

For more information, see the documentation on Salesforce Enhanced Ecommerce.

Was this helpful?

You may also like

2485784 wordpresscrmcompleteguide v3 102524
Tutorials
Sufia Banu

7 Best WordPress CRMs in 2025 (+ How to Connect)

The right CRM can be a game-changer but the wrong one can lead to missed opportunities and wasted resources. Find the WordPress CRM that is right for your business from the 7 best CRM software listed below.