Databook C4S - Salesforce CRM
Document v1.0a
This document contains instructions for granting Databook C4S permissions to read data from Salesforce CRM. The document describes integration using OAuth 2.0 Client-Credentials Flow.
Content
Background
Microsoft Copilot for Sales provides Databook C4S (Copilot Extension) with identifiers such as AccountId and OpportunityId. It’s up to the extension itself to resolve ids into actual objects with these requirements:
Resolve AccountId to Account Name.
Given AccountId
001ao00000eQZxaAAG
return AccountNameOracle
.AccountId -> AccountName.
Resolve OpportunityId to Account Name.
Given OpportunityId
006ao000004JaOr
return AccountNameOracle
.OpportunityId -> AccountId -> AccountName.
Databook C4S relies on the Salesforce REST API for integration. It uses the OAuth 2.0 Client Credentials Flow for Server-to-Server Integration as its means for authentication and authorization into Salesforce.
Prerequisites
Salesforce Environment
Salesforce Administrator / System Admin
Copilot for Sales (Premium license)
Installation
A. Creating an integration User
Navigate to the Home page in Salesforce Sales.
Visit the Setup page.
Under Administration Setup → Manage Users, click on Users.
Click on New to start creating a new User.
Complete Basic User Setup, pay attention to set User License as
Salesforce Integration
.
B. Configuring Integration User Permissions
From the All Users list (A.4), click on the newly created User name.
Configure License Assignments for the new User.
Tick the
Salesforce API Integration
Permission Set License and hit save.Under Administration Setup → Manage Users, click Permission Sets.
Click New to start creating a new Permission Set.
Give the permission set a name.
Go to Object Settings.
Click on Accounts.
Click edit for the Accounts object
Grant Access to read accounts by id
Go to Opportunities.
Click on Edit
Grant read access to Opportunity by Id
Under Administration Setup → Manage Users, click on Users (A.3).
Click on our previously created User (A.4).
Click on Edit Permission Set Assignments.
Grant the newly created permission set
C. Creating Connected App
Go to App Setup → Create, click on Apps.
Click New under Connected Apps to begin creation.
Fill out basic information
Configure OAuth
Save the Connected App
Under the Connected Apps list, click into the newly created app.
Click Manage Consumer Details
Take note of the Consumer Key and Consumer Secret
D. Contact Databook
Securely share your Consumer Key and Consumer Secret with Databook.