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

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.


Step 1: Go to Setup

  1. Login to your Salesforce account. – https://login.salesforce.com/

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

  3. Click Setup.

login and set up for sales force

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).

Create a Connected App

Set up Lighting experience app manager

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.

filling basic information in Salesforce Connected App including app name, email, OAuth settings, and scopes

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.

retrieving Client ID and Client Secret from Salesforce External Client App OAuth settings

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

Configure OAuth in WordPress


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.

Configure Salesforce API Request Configure Salesforce API Request


Test the Integration

Submit your Contact Form.

Go to: CF7 to Any API API Logs

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

Test the Integration

×

    whatsapp
    Star Star Star
    popup-offer

    SAVE UP TO 33%
    IF YOU ACT NOW.

    00H
    00M
    00S
    Unlock discounted price →

    No thanks, I’ll pay full price.

    Instant access. 14-day refund on first purchase.

    Star Star Star

    ONE LAST CHANCE
    TO GRAB THE DEAL!

    If You Leave Now, This Deal Won’t Be Saved.

    Unlock discounted price
    No thanks, I’ll pay full price.