CRMJettyBack to crmjetty.com
Menu

Dynamics 365

Introduction

Hosting and deployment

Account and billing

Connect your CRM

Payments

Widgets

Admin and dashboards

Portal users

Email and notifications

CRM connection and sync

Forms

Lists

Pages

Roles and permissions

Branding and navigation

Workflows

Support and knowledge base

Languages

Login and security

Documents and e-signatures

Integrations and AI

More

Docs / Dynamics 365

Dynamics 365 Customer Portalv6.3.0

Guides / Documents and e-signatures

How to Integrate SharePoint with Dynamics 365 Portal

5 min readUpdated
Short answerTurn on SharePoint document management for the entities you need in Dynamics 365. Then, in the portal admin, go to Settings → Integration → Sharepoint, verify the OTP, enter the SharePoint Site, Environment, Application (client) ID and Client Secret, and select Test Connection.

The SharePoint integration lets portal users work with documents stored in SharePoint, attached to their Dynamics 365 records. You connect a SharePoint site to the portal, then give portal user roles document access and add the SharePoint widget where users should see documents.

The SharePoint integration is included in every plan. See CRMJetty Plans and Feature Availability.

Before you start

Create a SharePoint site

Skip this if you already have a site for portal documents.

  1. Sign in to Microsoft 365 with an admin account. If you use Microsoft Dynamics 365 with admin access, you can use the same credentials.
  2. From the list of Microsoft 365 apps, select SharePoint. Any existing sites are listed.
  3. Select Create Site. A panel opens on the right.
  4. Select Team Site. Team sites are for storing and managing documents together; communication sites are for sharing information broadly.
  5. Enter the site details, such as the site name, description and permissions.
  6. Select Next to finish and save the site.

Copy the site URL. You enter it in the portal later.

Turn on SharePoint for your Dynamics 365 entities

The portal shows SharePoint documents only for entities that have SharePoint document management turned on in Dynamics 365. For example, to manage documents for cases and contacts, turn it on for the Case and Contact entities.

  1. In Dynamics 365, set up server-based SharePoint integration with your SharePoint site, if it isn’t set up already.
  2. Open Microsoft’s Document Management Settings.
  3. Select the entities that should store documents in SharePoint, such as Case and Contact.
  4. Finish the wizard.

For the exact steps, see Microsoft’s documentation on managing document management settings in Dynamics 365.

Note: If you turn on document management for another entity later, it then appears in the Documents section of portal user roles.

Connect SharePoint to the portal

  1. Sign in to the admin portal.
  2. Go to Settings → Integration → Sharepoint.
  3. Enter the OTP sent to the super admin’s registered email address.
  4. Fill in the fields in the table below.
  5. Select Test Connection.
Field What to enter
SharePoint Site The URL of the SharePoint site to connect to the portal.
Environment The SharePoint environment the portal works with, such as production or development.
Application (client) ID The Application (client) ID of your Entra ID app. The portal uses it to authenticate with SharePoint.
Client Secret The client secret Value of the same Entra ID app.

If the connection succeeds, a success message appears on the right side of the page. The site then appears in the list of available SharePoint sites, and documents are stored in SharePoint and linked to your Dynamics 365 records.

Important: When the client secret expires, the portal can no longer reach SharePoint. Create a new secret in Entra ID before the expiry date and update Client Secret here.

Give portal users access to documents

Connecting SharePoint doesn’t show documents to anyone yet. Next:

  1. Set document rights in each portal user role: turn on Document Access to let portal users add files and folders, and Delete to let them delete documents. See How to Create Portal User Roles and Permissions.
  2. Add the SharePoint widget to the forms or pages where portal users should see documents. See How Portal Users Upload and View SharePoint Files.

Troubleshooting

Test Connection fails: Check that Environment, Application (client) ID and Client Secret are correct, and that the client secret hasn’t expired. If it still fails, ask the person who manages your Microsoft 365 and Entra ID tenant to check the app’s SharePoint permissions and admin consent.

An entity is missing from the Documents section of a role: SharePoint document management isn’t turned on for that entity in Dynamics 365. Turn it on, then check the role again.

You don’t receive the OTP: The OTP goes only to the super admin’s registered email address. Ask the super admin to open the page, and check that SMTP is set up. See How to Configure SMTP Email in CRMJetty Portal.

Did this solve it?No, contact support