Integrating with Salesforce for Targeted Data Discovery
You can integrate and access Salesforce instances to service data discovery queries
To create a connected application
You will need to create a connected application for OneTrust in Salesforce. For more information about creating connected apps in Salesforce, see Create a Connected App.
New Connected App Screen Reference
- Field
- Description
- Connected App Name
-
Enter a name for the new connected application.
- API Name
-
This field will auto-populate with the entry from the Connected App Name only without spaces. Only letters, numbers, and underscores are permitted.
- Contact Email
-
Enter an email contact for the new connected application.
To enable the connected application for API integration
Connected apps must be integrated with the Salesforce API and OneTrust using the OAuth 2.0 protocol. For more information, see Enable OAuth Settings for API Integration.
Enable OAuth Settings
- Field
- Description
- Callback URL
-
Enter the Callback URL from OneTrust. For more information, see To set up credentials in OneTrust.
- Selected OAuth Scopes
-
Move the following OAuth scopes into the Selected OAuth Scopes column:
-
Access and manage your data (api)
-
Full access (full)
-
Perform requests on your behalf at any time (refresh_token, offline_access)
-
To obtain token information in Salesforce
Once you have enabled and saved your OAuth settings, you can obtain token information which will be used to set up your credentials in OneTrust.
-
Consumer Key
-
Consumer Secret
To set up credentials in OneTrust
For more information on creating integration credentials, see Configuring Integration Credentials.
Add Credential Modal Reference
- Field
- Description
- Credential Name
-
Enter a name to identify the credential.
- Description
-
Enter a description of the credential.
- System
-
Select Salesforce as the system.
- Connector Type
-
Select HTTP as the credential connector type.
- Auth Type
-
Select OAuth 2 as the authorization type.
- Test URL
-
Enter the test URL of your Salesforce instance.
- Protocol
-
Enter HTTPS as the protocol for the credential.
- Hostname
-
Enter the hostname for the credential.
- Grant Type
-
Enter AuthorizationCode.
- Callback URL
-
Use the Callback URL to configure your connected application in Salesforce. This is not an editable field.
- Auth URL
-
Append /services/oauth2/authorize to your Salesforce base URL.
- Access Token URL
-
Append /services/oauth2/token to your Salesforce base URL.
- Client ID
-
Enter the Consumer Key from Salesforce.
- Client Secret
-
Enter the Consumer Secret from Salesforce.
- Generate Token
-
Click the Generate Token button to create the Access Token and Refresh Token.
To create an integration workflow
You can create an integration workflow for Salesforce by using the seeded workflow template in the Gallery screen.