How to Connect Salesforce to WordPress

Do you want to connect Salesforce to WordPress?

MailOptin offers seamless integration with Salesforce, so you can automatically create leads, contacts, accounts, or subscribers in Salesforce from your email signup forms or optin forms.

You can follow the step-by-step guide below to learn how to connect MailOptin with your Salesforce account.

Note that our Salesforce integration only works with account that has API access. API access is only available on these Salesforce editions: Enterprise, Developer, Unlimited and Performance. Learn more.

How to Connect MailOptin With Salesforce

To connect your WordPress site to Salesforce via MailOptin, we must create a Salesforce Connected App first.

Creating a Salesforce Connected App

Log into your Salesforce account and navigate to the Setup page by selecting the gear icon in the top-right corner of the browser window.

Navigate to App >> App Manager and click the “New Connected App” button.

When creating your app, the following details are required for the app to function correctly with MailOptin:

  1. Connected App Name — we recommend using “MailOptin Salesforce Connect”.
  2. API Name — this field will be automatically populated
  3. Contact Email — This field is required for any app you create in Salesforce
  4. Enable OAuth Settings — this checkbox must be enabled
  5. Callback URL — This is usually and you should replace with your website domain name.
  6. Selected OAuth Scopes — Add the following scopes (highlight each scope, then click the “Add” arrow): Manage user data via APIs (api) and Perform requests at any time (refresh_token, offline_access)

When you are finished configuring the App, click Save.

Next, we need to retrieve the newly created app’s API credentials (Consumer Key and Consumer Secret).

On the app details page, click on “Manage Consumer Details”.

The next page would reveal the Consumer Key and Consumer Secret. Copy and save them somewhere, as we will need them next.

MailOptin Integration with Salesforce

Go to MailOptin >> Integrations.

MailOptin plugin menu

At the Salesforce Connection section, enter the Consumer Key and Consumer Secret from the Salesforce app you created earlier and save.

After saving, click the “Authorize your Account” button.

You will be redirected to a page on Salesforce asking you to log into your account securely. Enter your Salesforce credentials, and after logging in, select the Allow button to grant OAuth access.

And that’s it! Your Salesforce account is connected to WordPress.

You can see that we have a success message on the Salesforce settings page in MailOptin.

Having completed the setup, you can now start capturing leads.

Tags: salesforce