Salesforce Click2Call

Instructions for integrating your Salesforce CRM with CommPeak Click2Call, enabling seamless call functionality from within your CRM.

Here's a step-by-step guide to integrating your Salesforce CRM account with the CommPeak Dialer or Cloud PBXClick2Call. This setup will allow you to call your leads directly from Salesforce using your softphone client or IP phone.

📘

NOTE

The Click2Call integration is exclusively available for Salesforce Enterprise Edition.

Step 1: Add Remote Site Settings (Salesforce Side)

  1. In your Salesforce account, click Setup.

    Screenshot with the Setup button

    Setup button

  2. Navigate to Security > Remote Site Settings in your left-side menu.

  3. Create a new remote site:

    1. Click New Remote Site.
    2. Enter a name: Dialer_C2C_URL.
    3. Enter a remote site URL: https://{your_account_name}.td.commpeak.com
    4. Click Save.

This will enable Salesforce CRM to trigger remote requests to any Click2Call adapter on your CommPeak Dialer or Cloud PBX domain.

Step 2: Create a Connected App to Allow Webhook for Dialer / PBX (Salesforce Side)

  1. In your Salesforce account, click Setup.

  2. Navigate to Apps > App Manager in the left-side menu.

  3. Click New Connected App in the top-right.

    Screenshot with the New Connected App button in Setup

    New Connected App button in Setup

  4. Choose Create a Connected App and then click Continue.

    Screenshot with creating a connected app

    Creating a connected app

  5. Enter the following information:

  1. Enable OAth settings under API and select the following settings on the Manage Connected Apps page:
  • Select the Enable OAuth settings checkbox.

  • Select the Enable for Device Flow checkbox.

  • Enter Callback URL: https://{your_account_name}.td.commpeak.com/integrations/c2c/login-sales-force

  • Selected OAuth Scopes:

    • Manage user data via APIs (api)
    • Perform requests at any time (refresh token, offline access).
  • Select the Secret for Web Server Flow checkbox.

  • Select the Secret for Web Server Flow checkbox.

  • Unselect Require proof key for code exchange.

    Screenshot with the connected app settings

    Connected app settings

Screenshot with the Manage Consumer Details button

Manage Consumer Details button

  1. Click Save.

  2. On the next page, click Continue.

  3. Verify your Identity.

    Screenshot with identity verification

    Identity verification

  4. Copy Consumer Key and Consumer Secret. To find them in Salesforce, go to Setup > App Manager. Then expand CommPeak > View > Manage Consumer Details.
    Those are the client id and secret to be used in the Dialer or Cloud PBX Click2Call setup.

    Screenshot with providing consumer key and secret

    Providing consumer key and secret

Step 3: Add Click2Call Integration (CommPeak Dialer/Cloud PBX Side)

  1. In your CommPeak Dialer or Cloud PBX, go to Settings > Click2Call Integrations and click Create New Click2Call.

    Screenshot with the Create New Click2Call button

    Create New Click2Call button

  2. Enter data for your new integration:

    1. Click2Call General Information:

      • Click2Call name: specify the name of your integration to be able to find it in the list.​
      • CRM name: select Click2Call SalesForce.
      • Allowed IPs: enter the IP addresses you want to authorize for Click2Call integration, separated by commas.
      • Activate Click2Call: use the toggle to activate the integration or turn it off as needed.
    2. Sales Force Information: enter the Client Key and Secret from Step 1.

      Screenshot with Click2Call integration settings

      Click2Call integration settings

  3. Click Add New Click-to-Call.

  4. The system will redirect you to the dedicated Webhook setup. All your Salesforce settings are configured automatically. You just need to click Login.

    Screenshot with the webhook settings

    Webhook settings

  5. The Salesforce authorization wizard will start. Click Allow.

    Screenshot with Salesforce authorization

    Salesforce authorization

After successful authorization, you will be redirected to the Dialer or Cloud PBX again with the message Webhook activated successfully. Now, you can add your custom fields to the webhook mapping.

Step 4: Install the Click2Call App (Salesforce Side)

  1. Start by clicking the app installation link.
  2. After the installation, click Create a remote site (named mdapi) on the new page.
  3. See if there are no errors with the new remote site.

If the page is not displayed, go to Setup > Custom Code > Visualforce Pages > PostInstall Configuration > Preview to open the page.

  1. Click App Launcher (9 dots on the upper left side) and then search for Click2Call.

    Screenshot with searching for Click2Call in the App Launcher

    Searching for Click2Call in the App Launcher

  2. Configure Click2Call Global Settings:

  • PBX Name: set dialer / cloud pbx subdomain
  • prefix: set 00
  • UID: set your click2call UUID from Step 3.
  • accounts: type=account&ID={!Id}&name={!Name}
  • leads: type=lead&ID={!Id}
  • contacts: type=contact&ID={!Id}
  • predefined prefix:
00-International
01 - Check Space
*9911 - Check Long
no sign
  • Check Allow Restricted Fields

    Screenshot with Click2Call Global Settings

    Click2Call Global Settings

  1. Configure Click2Call Settings for each Salesforce agent user. Here, we connect the Salesforce user to the Dialer / Cloud PBX extension.
  • Pbx Name: set Dialer / Cloud PBX subdomain (it will be auto-filled from global settings)
  • Extension: set the agent Dialer / Cloud PBX extension that will be ringing while the agent makes a call.
  • Prefix: set 00
  • UID: set your Click2Call UUID from Step 2. It will be auto-filled from the global settings.
Screenshot with Click2Call settings

Click2Call Settings

  1. Click Save.

Step 5: Add the Click2Call URLs to the View (Salesforce Side)

  1. In Setup, go to Object Manager > Account / Contact or leads.

  2. Go to Page Layouts.

  3. Click on the used layout. Then, from Custom Links, drag and drop all the phone fields that should use Click2Call.

    Screenshot with the Custom Links menu

    Custom Links menu

  4. Save the layout.

Example of Click2Call in Salesforce CRM Lead Page

Screenshot with the Click2Call controls in Salesforce lead details

Click2Call controls in Salesforce lead details

❗️

IMPORTANT

Ensure that your IPs are included in the Public Recordings ACL to access call recordings via the CRM widget.