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 solution 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 Microsoft Entra ID and click View.
Under Manage, click App Registration.
Click New Registration.
Enter the following details:
Name: <ClientName>-SF-SP-Connector-ADApp (For example, TechnoMile-SF-SP-Connector-ADApp)
Supported account types: Single tenant Only
Do not provide a Redirect URI at this stage.
Click Register.
A new Azure AD App is created.Copy Application (client) ID and Directory (tenant) 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 under Manage, click Certificates & Secrets.
Click New Client Secret.
Add a Client Secret as shown below:
Name: <ClientName>-SF-SP-Connector-ClientSecret (For example, TechnoMile-SF-SP-Connector-ClientSecret).
Expires: 24 months (Follow your organizations expiration policy, if you have one. TechnoMile recommends 24 months).
Click Add.
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
To grant delegated and Application permissions:
On the left-hand side navigation panel under Manage, click API permissions and then click Add a permission.
Select Microsoft Graph.
Select Delegated permissions.
Under Files, enable Files.ReadWrite.All and Files.ReadWrite.AppFolder.
Under Sites, enable Sites.ReadWrite.All.
Under User, enable User.Read.
Scroll up and select Application permissions.
Under Files, enable Files.ReadWrite.All.
Click Add Permissions.
Click Grant admin consent for.
A confirmation message appears, click Yes.
The permissions are configured.
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
NOTE
To set up the SharePoint Connector in a GCC environment, follow these steps:
In the Customer Type field, select GCC
In the Microsoft Login field, enter https://login.microsoftonline.us
In the Graph End Point field, enter https://graph.microsoft.us
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 (tenant)ID copied during the Azure AD App Setup here.
Client ID: Paste the Application (client) ID copied during the Azure AD App Setup here.
Client Secret: Paste the Value copied during Generating a Client Secret here.
Redirect URI: To obtain the redirect URI:
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.
NOTE
Copy the URL and paste it into a Notepad/Word file for later use. You will need it to Register App Service Redirect URI on Azure Portal.
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
Before You Begin
Ensure you have the following details available before proceeding:
Sharepoint Site Name
Site ID
Document Library Name
The Site Name refers to the SharePoint site where your target object folder resides.
For example, if you are working with the Opportunity folder, the site name is Opportunities.
How to Derive the Site ID (Example: Opportunities)
Use the following URL format to retrieve the Site ID:
https://<tenant>.sharepoint.com/sites/<site-url>/_api/site/idParameters:
Tenant: Your SharePoint domain
Site URL: Your SharePoint site name
Example
For a tenant named TechnoMile and a site called Opportunities, the URL would be:
https://technomile.sharepoint.com/sites/Opportunities/_api/site/idSteps to Setup Connected Object Setting
To setup Connected Object Settings:
Go to Connected Object Setting and click Setup new object.
This section allows you to view objects that have a connection with SharePoint and set up new object connections.Ensure you have the details specified in the message, then click Next.
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.
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.
NOTE
Ensure the Root Folder name complies with the SharePoint guidelines, refer to Restrictions and limitations in OneDrive and SharePoint.
Click the Click to connect link under Status.
A confirmation message appears, click Continue.
Note that Status of object changes to Connected.
Click the link under Connection Settings.
Our Contract Connection Settings window opens.
NOTE
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.
Click View Folder Structure.
Click Create.
Select a Record Type such as Default and click Save.
Click the plus icon.
Enter a child folder name, and then 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 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.
Register App Service Redirect URI on Azure Portal
NOTE
You will need the redirect URI obtained during the Authentication Settings. Ensure this information is available before proceeding.
To register the app service redirect URI on Azure portal:
Login to Azure Portal (portal.azure.com) with your Azure Admin Credentials.
Navigate to Microsoft Entra ID.
On the left-hand side navigation panel, under Manage, click App registrations.
Select the App Registration you previously created.
Click Authentication (Preview).
Click Add Redirect URI.
Select Web on the right panel.
Enter the Redirect URI obtained during the Authentication Settings in SharePoint Admin Panel.
Enable the Access tokens and ID tokens checkboxes and then click Configure.
Assign Permission Sets
Go to Permission Sets using Setup search.
Locate and open SharePoint Fields.
Click Manage Assignments.
Click Add Assignment.
Select a user and click Next.
Click Assign.
Permission Set is assigned to the selected user.
Click Done.
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.
