Skip to main content
Salesforce

Guide to create Salesforce OAuth credentials for secure, token-based authorization in Torq integrations.

Updated over a week ago

Salesforce is a CRM and analytics tool for marketing, sales, and commerce.

Create a Salesforce Authorization Code

  1. Go to Settings > Setup > Apps > App Manager.

    salesforce setup
  2. Under Basic Information, fill out the App Name and email with relevant information (ex: Torq-connection and your work email)

    salesforce app manager
  3. Under API (Enable OAuth Settings):

    1. Check Enable OAuth Settings.

      salesforce enable oauth
    2. Check Enable for Device Flow.

    3. In Callback URL enter the URL generated in the callback URL parameter. It will either be https://redir.torq.io/integrations/salesforce_token or for EU https://redir.eu.torq.io/integrations/salesforce_token

      salesforce callback url
  4. In Scopes, you must add at least Perform requests at any time, and any other optional parameters you would like. Check off the following:

    1. Require secret for web server flow

    2. Require secret for refresh token flow

    3. Enable authorization code and credentials flow

    4. Enable OAuth Settings

    5. Enable for Device Flow

    6. Manage user data via API

      salesforce require secrets check
  5. On the next screen, go to View App and access the consumer details. This requires two-factor authentication.

    salesforce get client id access(1)
  6. Copy the Consumer key and Consumer secret. You will need them for later.

    salesforce consumerdetails
  7. Go to Settings > Platform tools section > Apps > App Manager, find the app you created, and press Manage > Edit Policies.

    salesforce app manager 2
  8. In OAuth Policies, select the following options:

    1. Permitted users: All users may self-authorize

    2. IP Relaxation: Relax IP restrictions

    3. Refresh token policy: Refresh token is valid until revoked

Create a Salesforce Integration in Torq

  1. Go to Build > Integrations > Steps > Salesforce and click Add.

  2. Enter a unique and meaningful name. This cannot be changed later.

  3. In Client ID enter the Salesforce customer ID you copied in step 6 above.

  4. In Client secret enter the Salesforce customer secret you copied in step 6 above.

  5. Adding Scopes is optional.

  6. Click Continue.

Did this answer your question?