Change Summary
Release Date | Release Version | Change Description | Link |
|---|---|---|---|
June 30th, 2024 | 2024.2 | Configure Authentication Settings in SharePoint Admin Panel in Salesforce |
Overview
SharePoint Connector integrates the TechnoMile Growth or Contracts Suite with your online Microsoft SharePoint site. This allows your team to centralize all documents and files associated with an Opportunity or Contract into a single, online repository and then quickly and conveniently access them directly from your Growth or Contracts solution.
TechnoMile’s SharePoint Connector auto-generates a standardized folder structure upon the creation of a new Opportunity or Contract record, enforcing clean, consistent organization of files in SharePoint and making them easy for users to find and share.
In order to achieve this, there are a number of steps you must follow to connect the two systems.
Complete Azure AD App set up
Configure Azure AD Settings and Redirect URI in Salesforce
Set Up Azure AD App
Login to Azure Portal (portal.azure.com) with your Azure Admin Credentials, navigate to Manage Azure Active Directory, and click View.
On the left-hand side navigation panel under Manage, click App Registration and then click New Registration.
Create a new App Registration as shown below:
Name of Registration: -SF-SP-Connector-ADApp (Example: TechnoMile-SF-SP-Connector-ADApp)
Select Accounts in this Organization Directory Only.
Do NOT provide any Redirect URI at this time.
Create Azure AD App.
Once Azure AD App is created, navigate to newly created AD App Registration.
Copy Application ID and Directory ID and paste it into a Notepad/Word file with labels.
NOTE
Ensure that you note down the Application (client) ID and Directory (tenant) ID, as you will need them during the Authentication step when configuring the SharePoint Admin Panel in Salesforce.

Generate Client Secret
On the left-hand side navigation panel, click Certificates & Secrets and then click New Client Secret.
Create a new Client Secret as shown below:
Name of Client Secret: -SF-SP-Connector-ClientSecret (Example: TechnoMile-SF-SP-Connector-ClientSecret)
Expires: 24 months (Follow your organizations expiration policy, if you have one. TechnoMile recommends 24 months.)
Once the Client Secret is created, copy the Value immediately and save it for later use. You will not be able to view it again once you navigate away from this page.
IMPORTANT
Copy the Client Secret Value and paste it into a Notepad/Word file for later use. Label it as Client Secret. Your Client Secret Value will be permanently hidden once you navigate away from this page. However, you must have access to this Value to complete the Authentication step when configuring the SharePoint Admin Panel in Salesforce. If you lose access to your Client Secret Value, you must delete your Client Secret and generate a new one.

App Permissions
Grant Graph Permissions
On the left-hand side navigation panel, click API Permissions and then click Add A Permission.
Select Microsoft Graph, then select Delegate Permissions, and search for and add the below listed permissions:
API/Permission Name
Type
Files.ReadWrite.All
Delegated
Files.ReadWrite.AppFolder
Delegated
Sites.ReadWrite.All
Delegated
User.Read
Delegated
Grant Application Permissions
Select Application, then select Delegate Permissions, and search for and add the below permission:
API/Permission Name
Type
Files.ReadWrite.All
Application
After selecting the above listed permissions, ensure that you Grant admin consent for at the top of the API/Permissions list.
After Granting admin consent, the following page displays.
NOTE
If you want to restrict access to a specific site in Azure, see Restricting Access to Your SharePoint Sites.
Register App Service Redirect URI
From the Azure Portal Home page, navigate to Azure Active Directory.
On the left-hand side navigation panel, click App Registrations.
Select the App Registration you previously created.
On the same panel, go to Authentication, click Add a platform, and then click Web.

Add Redirect URI retrieved from Authentication Settings in SharePoint Admin Panel present in your Salesforce org as Redirect URI into Azure AD App.
Select the Access tokens and ID tokens checkboxes and save these settings.

Configure SharePoint Admin Panel in Salesforce
NOTE
Before you begin configuring the SharePoint Admin Panel in Salesforce, ensure that you have the Application (client) ID, Directory (tenant) ID and, client secret Value readily available.
SharePoint Connection Settings
Go to SharePoint Admin Panel using App Launcher.

Go to SharePoint Connection Settings and click an edit icon to set up base connection details with SharePoint.

Enter values in the below mentioned fields:
Microsoft Login - Commonly, this is https://login.microsoftonline.com
Graph End Point - Commonly, this is https://graph.microsoft.com
SharePoint Domain URL - This is your SharePoint Domain URL
Select a Customer Type and Auth Type and click Save.

NOTE
Set Customer Type to COMM, if your company is on a Fed Ramp version of SharePoint please contact our Professional Services team. Set Auth Type to SSO.
Authentication Settings
Go to Authentication Settings and click an edit icon.

Enter values in the below mentioned fields:
Tenant ID - Paste the Directory ID copied during the Azure AD App Setup here.
Client ID - Paste the Application ID copied during the Azure AD App Setup here.
Client Secret - Paste the Value copied during Generating a Client Secret here.
Redirect URI - To get this URI perform the following steps:
Click the Click here to get Redirect URI link.

Copy the URL from the subsequent browser tab that opens.

Paste this URL in the Redirect URI field.

Notification Email - Enter Email ID of your SharePoint/Salesforce Administrator who will receive email notifications related to your App credentials validity and expiry.
NOTE
Email notifications for App credentials expiry are sent every 30 and 7 days, prior to expiry.
Credential Length - Select number of days for your App credentials validity.
Credential Generation Date - Select the date your App was created.
Click Save.

Remote Site Settings
Go to Remote Site Settings and note that the Remote Site Settings are pre-populated. The values entered in these settings are used to connect your Salesforce org to your SharePoint site.
However, you can click an edit icon to modify the Remote Site Settings, if required.


Connected Object Setting
IMPORTANT
While entering a name for your Root Folder in the steps below, refer to this article - Restrictions and limitations in OneDrive and SharePoint.
Go to Connected Object Setting and click Setup new object.This section enables you to view objects that have a connection with SharePoint and set up new object connections.
Prior to setting up a new object connection, you will require the following information as highlighted in the image below.Select an Object Name such as Our Contract, Opportunity, or Growth Opportunity and enter your SharePoint - Site Name, Site Id, and Document Library name.
NOTE
You cannot have multiple connected object settings on the same object. If a Connected Object Setting configuration fails, contact TechnoMile support to remove the previously attempted configuration and set up a new Connected Object Setting for the object.
Site Name is the name of the site where your Opportunity folders live. Commonly, this is called Opportunities.Site Id
URL
https://.sharepoint.com/sites//_api/site/id
Tenant
Your SharePoint Domain
Site URL
Your Site Name
Example
Using the example above the URL you enter is: https://technomile.sharepoint.com/sites/Opportunities/_api/site/id
Under Root Folder, click Add, select Type as Field, and then select a Value such as Contract Name.
Click Add again, select Type as Text, enter a Value of your choice, and click Save.
This is the name of your Root Folder for new records. You can also concatenate multiple fields in order to form a Root Folder name.Scroll right and click the Click to connect link under Status.

Click Continue.
Note that Status of object changes to Connected.
Scroll left and click Our Contract Settings.

Our Contract Connection Settings window opens.Important: A yellow warning message displays in this window. Ensure that you do not modify any of the fields above this message without consulting TechnoMile Support.
The fields below this message are editable and can be modified for overall behavior of SharePoint Connector.Specify Additional Settings for the connected object, if any.
Once SharePoint is connected to the object, you can set up/modify the default folder structure that gets created within SharePoint, whenever a new object is connected to it.
Scroll right and click View Folder Structure.
Click the plus icon to add a child folder, enter a folder name, and click the save icon.
A child folder is added.You can now edit this folder name, delete this folder, or add other child folders, as per your requirements, by clicking the icons highlighted in the image below.
You can also select the Apply to All Record Types checkbox to apply the same folder structure to all remaining record types of this object.

Assign Permission Sets
Go to Permission Sets using Setup search.

Click Assign.
Permission Set is assigned to the selected user.Similarly, assign the SharePoint Permissions Permission Set to your selected user(s).
Adding SharePoint Tab to Connected Object Record Page
Go to your connected object such as Opportunities, Our Contracts, or Growth Opportunities using App Launcher.
Open an Opportunity Record.
Opportunity record page opens.Click the gear icon and select Edit Page.
Lightning App Builder opens.Go to any tab such as Details and click Add Tab.

Click Details, select Custom as Tab Label, enter SharePoint as Custom Label, and click Done.
SharePoint tab is added.Go to the SharePoint tab, scroll down, and drag-and-drop the TM_SharePoint_OBO_cmp component onto this tab.

Click Save.
A popup window opens.Click Activate.

Click Assign as Org Default.

Choose Desktop and click Next.

Click Save.

Click the Back arrow icon.
Opportunity record page opens with the SharePoint tab.













