Limited-time deal: Save up to 33% on CF7 to Any API | Ends soon → Get the deal now!

How to Send Contact Form 7 Leads to Salesforce Using Contact Form to Any API PRO

Integrating Contact Form 7 (CF7) with Salesforce CRM allows you to automatically send form submissions from your WordPress website directly into Salesforce Leads.


Why Integrate Contact Form 7 with Salesforce?

Connecting CF7 to Salesforce helps you:

  • Automatically create Leads in Salesforce

  • Eliminate manual data entry

  • Improve sales team response time

  • Maintain accurate CRM records

  • Streamline marketing automation


Step 1: Go to Setup

  1. Login to your Salesforce account.

  2. Click on the Gear icon (⚙️) in the top right.

  3. Click Setup.

Step 2: Create a Connected App

  1. In the left sidebar search box, type App Manager.

  2. Click App Manager.

  3. Click New External Client App (top right).

Step 3: Fill Basic Information

Fill in:

  • Connected App Name → Example: Weblead

  • API Name → Auto-filled

  • Contact Email → Your email

  • Check Enable OAuth Settings.

  • Callback URL  https://website.com/wp-admin/admin.php?page=cf7auth

  • Under Selected OAuth Scopes, add:

    • Access and manage your data (api)

    • Perform requests on your behalf at any time (refresh_token, offline_access)

  • Click Save

⚠️ Salesforce may take 2–10 minutes to activate the connected app.

Step 4: Get Client ID & Client Secret from Salesforce

After creating and saving your External Client App, follow these steps to retrieve your credentials:

  1. Go to Setup in Salesforce

  2. Navigate to: Apps → External Client Apps → External Client App Manager

  3. Locate and click the app you just created.

  4. Open the Settings tab.

  5. Under OAuth Settings, click on Consumer Key and Secret.

⚠️ Note: Salesforce may require email verification before displaying the Consumer Secret. If prompted, complete the verification process to reveal the secret.

Step 5: Configure OAuth in WordPress (Auth Master)

  • Go to: CF7 to Any API → Auth Master
  • Auth Type : OAuth2 Authorization Code
  • Endpoint URL: https://login.salesforce.com/services/oauth2/token/
  • Client ID: Paste Salesforce Consumer Key
  • Client Secret: Paste Salesforce Consumer Secret
  • Access Token Response Key: access_token
  • Authorization URL: https://orgfarm-b7sda856-dev-ed.develop.my.salesforce.com/services/oauth2/authorize?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=https://website.com/wp-admin/admin.php?page=cf7auth
  • Redirect URI: Copy from plugin and paste in Salesforce app if not already added.
  • Click Authorize → You should see: ✅ Connected


Step 6: Configure Salesforce API Request

Now go to: CF7 to Any API → All API Integrations → Add New Integration

  • API Endpoint URL To create a Lead: https://yourdomain.my.salesforce.com/services/data/v63.0/sobjects/Lead/
Make sure:
  • Version matches your Salesforce version

  • Instance URL matches your org

Request Method: POST

Request Body Type: Raw JSON (application/json)

Example JSON Payload:
{
      “FirstName”: “[your-name]”,
“LastName”: “[last-name]”,
“Company”: “[your-subject]”,
“Email”: “[your-email]”
}
Click Save.


Test the Integration

Submit your Contact Form.

Go to: CF7 to Any API API Logs

If successful, you will see: API Status: Created (201)

×

    whatsapp