To set up the SharePoint integration, you will need to assemble a redirect url with the instructions below.
Find Your My Domain Name
To find your organization's My Domain name, go to Setup >> Quick Find: My Domain (see below).

Find the Sandbox Name (only if using a sandbox)
If you are installing into a sandbox, then you will need the name of the sandbox as well. To find your sandbox name, (while logged into the sandbox) look at the top of any page (see below).

Assemble Your URL
With Enhanced Domains enabled:
- Production -
https://[your salesforce my domain]--shpoint.vf.force.com/apex/ConnectSharePoint
- Sandbox -
https://[your salesforce my domain]--[your sandbox name]--shpoint.sandbox.vf.force.com/apex/ConnectSharePoint
Without Enhanced Domains:
- Production -
https://[your salesforce my domain]--shpoint.visualforce.com/apex/ConnectSharePoint
- Sandbox -
https://[your salesforce my domain]--[your sandbox name]--shpoint.visualforce.com/apex/ConnectSharePoint
- My Domain name = acmecompany
- Sandbox Name = sandbox1
If installing into a production org, then this link would be used -
-
When Enhanced Domains is enabled:
https://acmecompany--shpoint.vf.force.com/apex/ConnectSharePoint
-
When Enhanced Domains is not enabled:
https://acmecompany--shpoint.visualforce.com/apex/ConnectSharePoint
If installing into a sandbox, then this link would be used -
-
When Enhanced Domains is enabled:
https://acmecompany--sandbox1--shpoint.sandbox.vf.force.com/apex/ConnectSharePoint
-
When Enhanced Domains is not enabled:
https://acmecompany--sandbox1--shpoint.visualforce.com/apex/ConnectSharePoint
When Enhanced Domains is enabled or disabled within an organization, it will impact the redirect url needed for authenticating users within the integration. Whenever such configuration change is deployed within your organization, your administrator must assemble the new updated URL as explained above and update according to instructions specified below.
How To Update Your Redirect URL
The Redirect URL assembled above should be added within the SharePoint Admin Portal (SharePoint add-in/Azure-AD) and SharePoint Setup (within Salesforce).
1. Update Redirect URL in SharePoint Admin Portal
Based on how you originally set up the SharePoint application registration for authentication within your organization, you may proceed with any of the options provided below:
- If authentication is done using the SharePoint Add-in:
- Please follow this article and create a new web application.
- If authentication is done using Azure-AD:
- Log in to your Azure portal as an administrator. Then, under Azure Services, select Azure Active Directory.
- On the Active Directory page, select App registrations from the navigation menu on the left.
- Find and open your application by clicking on the name.
- From the navigation menu on the left, select Authentication.
- Under the Web Redirect URIs, click on Add URI action link.
- Enter your assembled Redirect URL in the input box indicated on your screen.
- Click Save to save your changes to the application.
2. Update Redirect URL in SharePoint Setup in Salesforce
You can find SharePoint Setup in the AppLauncher (waffle) at the top left of any Salesforce page.
- From the side menu, click on SharePoint Configuration.
- Select the Edit action button in the page header.
- Enter your assembled Redirect URL.
- Click Save.
0 Comments
Add your comment