Integrate Microsoft 365 Azure with Salesforce for Net Zero Cloud
Author disclosure reports directly in Microsoft 365 Word by using the Salesforce Disclosure and Compliance Hub for Microsoft 365 Word add-in. To establish a secure connection between Salesforce and the add-in, configure a Microsoft Azure app, authentication provider, and named credential.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions |
Before you begin the integration of Microsoft 365 Azure with Salesforce for Net Zero Cloud:
- Log in to Azure.
- Create a Microsoft Azure account.
- Add an Office 365 E1 license to your users.
- Establish a connection between Salesforce and Microsoft by configuring a Microsoft Azure app.
- Establish a secure connection between Salesforce and Microsoft by adding an authentication provider credential.
- Add a named credential to use the external document storage configuration.
- For legacy named credentials that use per-user authentication, grant access to users through permission sets and profiles.
- Store disclosure documents and document templates by creating a site in SharePoint.
-
Configure your authentication settings to access an external system from
Salesforce.
See Set Up Your External Authentication in Author Disclosures Using Microsoft 365 Word.
- To create DOCX, PPT, and Microsoft 365 Word templates in Salesforce, use Design Document Template.
- Set up the default mechanism for document generation on the server side.
- To use Microsoft 365 Word to create documents that contain formatted text, create templates in design document template.
- Specify the Microsoft OneDrive location in the external document storage configuration so that the generated disclosure documents are stored in a single location.
- Salesforce admins deploy and assign the Salesforce Disclosure and Compliance Hub for Microsoft 365 Word app to all or specific users.
- To generate disclosure reports with the Salesforce Disclosure and Compliance Hub add-in for Microsoft 365 Word, select Microsoft 365 Word for Get Disclosure and Compliance Hub Plugin.
-
Salesforce Disclosure and Compliance Hub for Microsoft 365 Word add-in supports the
Android, Microsoft Windows, and iOS operating systems, and the latest stable browser
versions of Apple Safari, Mozilla Firefox, and Google Chrome.
See Supported Browsers and Devices for Salesforce Contracts Connector for Word Add-In. The article is written for Salesforce Contracts users, but the steps apply to Net Zero Cloud.
Create a Connection Between Salesforce and Microsoft Azure
Configure a Microsoft Azure app to establish a connection between Salesforce and Microsoft.
Required Editions
| User Permissions Needed | |
|---|---|
| To register a client application on Microsoft Azure: | Azure Tenant Administrator access |
- Open Microsoft Azure, and log in to your Azure account.
- Search for app registration, and then click New Registrations.
-
Enter the registration details.
- Enter a name for the app, for example, MicrosoftApp.
- For supported account types, select Accounts in this organizational directory only (Salesforce -SFDC-CLM only - Single tenant).
- Click Register.
- Note the Application (client) ID for later use.
-
Add permissions.
- Click API permissions.
- Click Add a permission | Microsoft Graph | Delegated permissions.
- In select permissions, enter Files.ReadWrite.All.
- Select Files.ReadWrite.All permission, and click Add permissions.
-
Repeat these steps for these permissions:
- openId
- User.ReadWrite
- Offline_access
-
Click Grant admin consent for {TenantName}, and confirm the
consent.
The status changes to Granted for Salesforce - {TenantName} for all permissions.
-
Add and save a client secret.
- Click Certificates & secrets.
- Click New client secret.
- Enter a description for the client secret, for example, MicrosoftApp.
- Enter or select an expiration time frame, and click Add.
-
Copy and save the client secret value, which you need when configuring your
authentication provider.
If you don't copy the client secret value now, you can’t retrieve it, and must create a new one.
Configure an Authentication Provider for Microsoft App
Add an authentication provider credential to establish a secure connection between Salesforce and Microsoft.
Required Editions
| User Permissions Needed | |
|---|---|
| To view the settings: | View Setup and Configuration |
| To edit the settings: | Customize Application |
| To configure Auth. Provider: | Manage Auth. Providers |
- From Setup, in the Quick Find box, enter Auth. Providers, and then select Auth. Providers.
- Click New.
- For the provider type, select Open ID Connect.
-
For the authentication provider name, enter MicrosoftApp.
MicrosoftApp is added to the end of the URL.
- For the consumer key, enter your Azure app’s Application (client) ID.
- For the consumer secret, enter your Azure app’s Client Secret Value.
- For the authorize endpoint URL, enter https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize.
- For the token endpoint URL, enter https://login.microsoftonline.com/organizations/oauth2/v2.0/token.
- For the user info endpoint URL, enter https://graph.microsoft.com/oidc/userinfo.
-
For the default scopes, enter https://graph.microsoft.com/Files.ReadWrite.All
offline_access openid User.ReadWrite.
Make sure that Default Scopes matches the API permissions that you added to your Microsoft Azure account. See Create a Connection Between Salesforce and Microsoft Azure.
- Deselect Send client credentials in header.
- Select Send access token in header and Include Consumer Secret in SOAP API Responses.
- For the registration handler, select Automatically create a registration handler template.
- For how to execute the registration, select your system admin account.
- Save your changes.
-
Under Salesforce Configurations, verify that
these
URLs are generated.
- Test-Only Initialization URL
- Single Sign-On Initialization URL
- Existing User Linking URL
- OAuth-Only Initialization URL
- Callback URL
- Single Logout URL
-
If your Salesforce org has an Experience Cloud site, expand Experience Cloud Sites
and
verify that these URLs are generated.
- Test-Only Initialization URL
- Single Sign-On Initialization URL
- Existing User Linking URL
- OAuth-Only Initialization URL
- Callback URL
-
Save your changes.
After you save the Auth. Provider, a Registration Handler Apex class is created. For example, AutocreatedRegHandler1234567890123.
-
Disable email notifications.
You can also disable email notifications when you link your Salesforce account with your Microsoft Azure account and update the Salesforce email address with your Microsoft Azure account.
- Click the Registration Handler Apex class link.
- Click Edit.
-
Search for the updateUser method, and remove or comment out this entry.
//u.email = data.email;//u.lastName = data.lastName;//u.firstName = data.firstName; - Save your changes.
-
Add the Callback URL.
- Go back to your authentication provider.
- In the Salesforce Configuration section, copy the callback URL.
- Open your Microsoft Azure account, and click Overview.
- Click Add a Redirect URL next to Redirect URLs.
- Select Add a platform | Web.
- Paste the callback URL in Redirect URIs.
- Select the access tokens (used for implicit flows) and ID tokens (used for implicit and hybrid flows).
- Click Configure.
- If you have a partner community set up, go to the Auth. Provider in your org.
- From the Experience Cloud Sites section, copy the callback URL.
- Open your Microsoft Azure account, and click Authentication.
- Go to Web | Redirect URLs, and click Add URL.
- Paste the Experience Cloud Site callback URL, and save your changes.
-
Test the Auth. Provider authentication.
- From the Salesforce Configuration section, copy the Test-Only Initialization URL.
- Paste the URL in the address bar, and press Enter.
Log in to the third-party provider and you’re redirected back to your Salesforce org.
Create a Named Credential for Salesforce Disclosure and Compliance Hub for Microsoft 365 Word Add-In
Add a named credential to use the external document storage configuration. Specify the Microsoft OneDrive location in the external document storage configuration so that the generated contract documents and document templates are stored in a single location.
Required Editions
| User Permissions Needed | |
|---|---|
| To view named credentials: | View Setup and Configuration |
| To create, edit, or delete named credentials: | Customize Application |
| To authenticate on Microsoft Azure: | Azure Tenant Administrator access |
- From Setup, in the Quick Find box, enter Named Credentials, and then select Named Credentials.
- From the actions menu, select New Legacy.
- For Label, enter MicrosoftApp.
- For URL, enter https://graph.microsoft.com/v1.0.
- For Identity Type, select Per User.
- For Authentication Protocol, select OAuth 2.0.
- For Authentication Provider, select the authentication provider.
- Select Start Authentication Flow on Save.
- Select Generate Authorization Header.
-
Save your changes.
The named credential’s authentication status changes to Authenticated when Microsoft Azure is authenticated.
Note If your Microsoft account is already authenticated in your current browser session, you can successfully authenticate your named credential. If not, authenticate your named credential by using your Microsoft account credentials.
Configure External Document Storage for Disclosures
Specify the Microsoft OneDrive location in the external document storage configuration to store the generated disclosure documents in a single location.
Required Editions
| User Permissions Needed | |
|---|---|
| To view the settings: | View Setup and Configuration |
| To create, edit, or delete named credentials: | Customize Application |
| To authenticate on Microsoft Azure: | Azure Tenant Administrator |
- From Setup, in the Quick Find box, enter External Document, and then select External Document Storage Configuration.
- Click New.
-
Select Disclosure as the target object.
Note If you store all the documents in the same OneDrive account irrespective of the target object, and the authentication provider and named credentials are the same for all objects, then you can select the target object as All. -
Select All or a disclosure record type that you created.
Each disclosure record type must have a corresponding entry in the External Document Storage Configuration.
-
Enter the SharePoint drive ID for the external document storage identifier.
The SharePoint drive ID is generated when you create a SharePoint site. See Create a SharePoint Site for Net Zero Cloud.
-
To determine where you want to store the documents, enter the document folder path, for
example, Disclosure/DisclosureAndComplianceHub.
Salesforce sets up the folder structure inside the SharePoint site that you created to store document templates and disclosure documents.
- Select the named credential that you created for the Microsoft app.
- Select Microsoft OneDrive as the storage drive type.
- Save your changes.
- Repeat these steps for the Document Template target object.
Configure External Document Storage for Information Library
Specify the Microsoft OneDrive location in the external document storage configuration to store the Information Library documents in a single location.
Required Editions
| User Permissions Needed | |
|---|---|
| To view the settings: | View Setup and Configuration |
| To create, edit, or delete named credentials: | Customize Application |
| To authenticate on Microsoft Azure: | Azure Tenant Administrator |
- From Setup, in the Quick Find box, enter External Document, and then select External Document Storage Configuration.
- Click New.
-
Select Information Library as the target object.
Note If you store all the documents in the same OneDrive account irrespective of the target object, and the authentication provider and named credentials are the same for all objects, then you can select the target object as All. -
Enter the SharePoint drive ID for the external document storage identifier.
The SharePoint drive ID is generated when you create a SharePoint site. See Create a SharePoint Site for Net Zero Cloud.
-
To determine where you want to store the documents, enter the document folder path, for
example, InformationLibrary.
Salesforce sets up the folder structure inside the SharePoint site that you created to store document templates and disclosure documents.
- Select the named credential that you created for the Microsoft app.
- Select Microsoft OneDrive as the storage drive type.
- Save your changes.
Deploy Salesforce Disclosure and Compliance Hub for Microsoft 365 Word App
Centralize the deployment and assign the Salesforce Disclosure and Compliance Hub Connector for Word app to users so that they can use the Salesforce Disclosure and Compliance Hub for Microsoft 365 Word add-in.
Required Editions
| User Permissions Needed | |
|---|---|
| To deploy the add-in app to users: | System Administrator with Azure Tenant Administrator access |

