Wiline UCaaS, WiLine Connect, Wiline Voip
Skip to main content
WiLine UCaaS, WiLine Voip, WiLine PBX WiLine UCaaS, WiLine Voip, WiLine PBX WiLine UCaaS, WiLine Voip, WiLine PBX WiLine UCaaS, WiLine Voip, WiLine PBX

Salesforce Integration

Integrate Salesforce with the Admin Portal to unify CRM and communication. The integration syncs Salesforce data with call activity, enables ClickToCall for leads and contacts, and keeps records aligned. It helps teams respond faster, reduce manual work, and improve collaboration. This guide shows how to create, view, edit, and delete Salesforce integrations.


Credentials Required for Integration​

To set up the integration, you will need the following credentials:

  • Salesforce URL (e.g., https://your-instance.salesforce.com)
  • OAuth Consumer Key
  • OAuth Consumer Secret
  • Salesforce Username
  • Salesforce Password

Let's walk through the setup process step by step.


Step 1: Prepare Salesforce for Integration​

  1. Log in to your Salesforce account with an administrator role.

  2. Click the gear icon in the top-right corner and select Setup:

    Navigate to Setup
    Figure 1. Accessing the Salesforce Setup menu.

  3. You will be redirected to the main Salesforce configuration page:

    Salesforce main page
    Figure 2. Salesforce main configuration page.

  4. In the Quick Find box on the left, type External and select Apps > External Client App Manager.

  5. Click New External Client App to create a new Salesforce Connected App:

    Salesforce New External Client App
    Figure 3. Creating a new Salesforce Connected App.

    This page lists all apps created for communication with external services.

  6. Complete the form with the required information. The following fields are mandatory:

    • External Client App Name: a name for your app (e.g.: MegaphoneApp)
    • API Name: a name for the API (e.g.: MegaphoneApp)
    • Contact Email: your email address
    • Distribution State: Local

    Salesforce Important Field
    Figure 4. Salesforce Connected App creation - ensure "Distribution State" is set to "Local".

    info

    The Distribution State must be set to Local. This limits the Connected App to your Salesforce organization only, preventing public distribution and ensuring secure communication with the WiLine Admin Portal.

  7. Scroll down on the same page to enable the following settings:

    API (Enable OAuth Settings)
    Figure 5. Enabling OAuth settings and selecting OAuth scopes.

    1. Set the Callback URL to:
      https://prod-mega-goapiv1.wiline.com/api/v1/salesforce/oauth/callback.

    2. Select the following OAuth scopes:

      • Full access (full)
      • Manage user data via APIs (api)
      • Perform requests on your behalf at any time (refresh_token, offline_access)
  8. Scroll down further and enable these settings:

    • Flow Enablement:
      • Enable Authorization and Credential Flow
    • Security:
      • Require secret for Web Server Flow
      • Require secret for Refresh Token Flow

    select the following fields
    Figure 6. Enabling flow and security settings.

  9. Click the Create button to save your Salesforce Connected App.

    You will see the following confirmation screen:

    Manage External Client App - Enabled
    Figure 7. Salesforce Connected App successfully created and enabled.

  10. Your Connected App is now active. Next, you need to retrieve the Consumer Key and Consumer Secret. Scroll down to the Settings section and select OAuth Settings:

    App Settings - Consumer Key and Secret
    Figure 8. Accessing Consumer Key and Consumer Secret.

  11. Click the Consumer Key and Secret button under App Settings. For security, these credentials are hidden until you verify your identity.

    Salesforce - Verify your identity
    Figure 9. Salesforce identity verification prompt.

  12. Complete the authentication to verify your identity. This is a security measure by Salesforce. After authentication, the keys will be displayed.

    Salesforce - Verify your identity Email
    Figure 10. Verification code sent via email.

  13. Check your email for the Verification Code. Enter this code on the previous page and click Verify.

  14. Upon successful verification, the Consumer Key and Consumer Secret will be revealed:

    Validated - Consumer Key and Consumer Secret
    Figure 11. Validated Consumer Key and Consumer Secret.

  15. Save the Connected App and allow up to 10 minutes for changes to propagate. You may receive a verification email to confirm your contact email address.

  16. After the Connected App is created, click View to see and copy the Consumer Key and Consumer Secret. You will need these credentials for the Admin Portal.


Step 2: Configure WiLine Integration​

After gathering your Salesforce credentials, configure the integration in the Admin Portal.

  1. Log in to the Admin Portal.

  2. Go to Features > Integrations > Salesforce Integration.

    Choose Salesforce Integration
    Figure 12. Access Salesforce Integration in the Admin Portal.

Create a New Salesforce Integration​

  1. Click the New button in the Salesforce Integration window:

    Create New Salesforce Integration
    Figure 13. Salesforce Integration window.

  2. Fill out the integration form with the following information:

    FieldAction
    NAMEEnter a descriptive name for this integration.
    URLEnter the full URL of your Salesforce instance.
    USERNAMEEnter your Salesforce username.
    CONSUMER KEYPaste the OAuth Consumer Key from your Salesforce Connected App.
    CONSUMER SECRETPaste the OAuth Consumer Secret from your Salesforce Connected App.

    Note: Ensure OAuth credentials are correct to maintain a successful connection. Visit Step 1: Prepare Salesforce for Integration if necessary.

    1. Click Next to continue to the next steps. A Salesforce authorization popup will appear. Authenticate and authorize WiLine to access Salesforce:

      Salesforce authorization popup
      Figure 14. Salesforce authorization popup.

    2. After authorization, an API token will be generated:

      API token confirmation
      Figure 15. API token confirmation.

    3. Synchronize users between Salesforce and WiLine:

      User synchronization
      Figure 16. User synchronization options.

      Click Sync User and then select the Salesforce User from the dropdown.

      Once synchronized, you can use the ClickToCall feature. When viewing a lead or contact in Salesforce, pressing ClickToCall will initiate a call to the customer, ringing the extension configured in your WiLine account.

    4. To finalize your integration, complete additional settings:

    • Call Type: Select Inbound or Outbound.
    • Select TNs: Choose the telephone numbers that trigger this integration.
    • Package Installation: Follow prompts to install required packages.
  3. Review all fields. Click Finish to save the integration.


Step 3: Enable Click2Call in Salesforce UI​

  1. Log in to Salesforce with an administrator role.

  2. Click the gear icon > Setup:

    PC_1
    Figure 17. Access Setup via Quick Find.

  3. In Quick Find, search for Object Manager:

    PC_2
    Figure 18. Navigate to Object Manager.

  4. Select Lead:

    PC_3
    Figure 19. Select the Lead object.

  5. Open Lightning Record Pages > Lead Record Page:

    PC_4
    Figure 20. Open the Lead Record Page.

  6. In Custom, drag the Click2Call button to the desired location:

    PC_5
    Figure 21. Drag the Click2Call button.

    warning

    Modifying other components may affect your page layout and integration.

  7. Click the blue Save button.

  8. Test the Click2Call button on a Lead: it should ring your extension and connect to the customer, logging call details.

Use the Click2Call button in Salesforce​

  • On a Lead or Contact, click ClickToCall to initiate a call through your assigned extension:

    MF_16
    Figure 22. ClickToCall button on Salesforce record.

  • Verify your extension in Profile > Settings. WiLine auto-assigns this value (e.g., β€œ175-3091”):

    MF_15
    Figure 23. Extension field assigned by WiLine.

    warning

    Do not change this field manually; it may disrupt your integration.

  • Calls initiated via ClickToCall will automatically log details in the Lead record:

    MF_17
    Figure 24. Call data recorded in Lead.

    ClickToCall rings your extension, connects to the customer, and logs call data in the Lead record.


Edit an Existing Salesforce Integration​

View Salesforce Integrations List​

  1. On the Integrations page, locate the Salesforce integration you want to modify.

  2. Click the View/Edit button next to the integration or double-click the integration row.

  3. Update the fields as required, such as Name, URL, or other configuration settings:

    Salesforce Integrations List
    Figure 25. View all existing Salesforce integrations.

  4. Use the Refresh button to update the list if a newly created integration does not appear immediately.


Edit a Salesforce Integration​

To edit an existing Salesforce integration:

  1. On the Integrations page, locate the Salesforce integration you want to modify.

  2. Click the View/Edit button next to the integration or double-click the integration row.

  3. Update the fields as needed, such as Name, URL, Consumer Key, Consumer Secret, or other configuration settings.

    important

    When editing an integration, you can update fields as needed. Note that changes to the Consumer Key or Consumer Secret may require re-authentication with Salesforce to generate a new token. The system will prompt you with the authorization popup if required.

    Edit Salesforce Integration
    Figure 26. Modify an existing Salesforce integration.

  4. To move through each step, use the blue Next button.

  5. Click the green Finish button to save your changes.

  6. If needed, click the gray Previous button to go back and modify an item.


Delete a Salesforce Integration​

To delete a Salesforce integration:

  1. Select the Salesforce integration from the list on the Integrations page.

  2. To delete the integration, click the red Delete button in the top action bar.

  3. Confirm by selecting DELETE! from the dropdown.

    Delete Salesforce Integration
    Figure 27. Use the Delete button to permanently remove a Salesforce integration.

warning

Deleting an integration is irreversible. Please confirm before proceeding.


Additional Notes​

  • Verify that your Salesforce account has API access permissions.
  • Keep your Salesforce credentials secure; do not share them.
  • Confirm that your Salesforce URL and credentials are correct if you encounter issues.
  • Ensure user emails match between Salesforce and WiLine to enable proper synchronization.
  • If necessary, contact support for additional help with OAuth setup or integration configuration.
  • Confirm that the Salesforce Connected App has the correct OAuth scopes and that API access has been granted by your administrator.