Work with SharePoint and Dynamics 365 Customer Engagement apps

Completed

SharePoint helps us with our daily work with Dynamics. The video below is an overview of SharePoint.

Configure SharePoint Online

To set up Dynamics 365 to use SharePoint Online, complete the following steps.

Assign user permissions to the Team SharePoint site

Your Dynamics 365 and Microsoft 365 users are not automatically allowed access to your SharePoint sites. You must work within the SharePoint site to assign specific permission levels to individual users or groups.

Assign users to the Team site

  1. Browse to the Microsoft 365 admin center and sign in using Microsoft 365 Global administrator credentials.

  2. Open the Microsoft 365 app launcher, and then click SharePoint. On the left-side menu, click Team Site.

  3. On the Home page, click SHARE (upper-right corner).

Screenshot showing the Share button on the top menu

  1. To view the default permissions for your team site, click lots of people.

Screenshot showing the shared with lots of people selection

5.By default, all users in your Microsoft 365 organization are able to add and edit documents on the Team SharePoint site. To invite others, choose Invite people and add people external to your organization to share documents.

Configure a new organization

Take the following steps to set up SharePoint document manage with Dynamics 365.

  1. Go to Setting in the classic interface and select Document Management.

Screenshot showing the Document Management option

  1. Click on Document Management Settings and the following window will open; from here you select the entities you want to enable for document management with SharePoint. By default, the SharePoint Site URL is added if your Dynamics 365 environment is in the same Microsoft 365 tenant as SharePoint.

Screenshot showing the entity selection and the SharePoint URL field

  1. Click Next and you will have the choice of setting the base entity for your folder structure. Also, the URL is validated to make sure that the SharePoint site exists, and you have access to it.

Screenshot showing the entity for the folder structure

SharePoint is now integrated to Dynamics 365.

Working with SharePoint from with Dynamics 365

All entities that you enabled from document management will now have Documents under the related menu.

Screenshot showing the related documents button

Working with documents

After server-side SharePoint integration has been configured, many SharePoint commands are available from the command bar. This will typically be common actions like Upload, Check out and Check in.

Additional items like Alert me, download a Copy, Copy Shortcut, Send Shortcut, View properties and Version History are not available directly from the command bar, however you will be able to access these commands by clicking on the Open SharePoint command.

Screenshot showing the top menu on an account

Working with records

It is important to remember that when you connect Dynamics 365 to SharePoint, you are only providing a mechanism for accessing a SharePoint Document Library from within Dynamics 365. Think of it is a link to the SharePoint Document Library.

What people can do with the documents in the Document library is controlled by the user’s permissions to that library in SharePoint. SharePoint and Dynamics 365 permissions are maintained independently and discussed in a later lesson.

Some additional items to consider about the integration include:

  • Deleting a document in Dynamics 365 does delete the document in SharePoint.

  • Deleting a Dynamics record does not remove the SharePoint documents.

  • Merging records will result in merged record having multiple document locations.

  • Document location can be auto created via workflow or other custom code.

Configure SharePoint on-premises

Dynamics 365 can connect to SharePoint that is hosted in another location other than Microsoft 365, such as on-premises location.

One thing to consider is authentication as part of this model. When using server-based authentication, Microsoft Entra ID Domain Services is used as the trust broker and users do not need to sign in to SharePoint. The process of setting this up requires the steps to be followed in the correct order, see Configure server-based authentication with Dynamics 365 Customer Engagement apps for more information.

Apart from this the experience will be the same as working with SharePoint located in Microsoft 365.

Configure SharePoint security

It is important to note that security for SharePoint and Dynamics 365 are managed differently. There is currently no security privilege synchronization between Dynamics 365 and SharePoint. What this means is if you restrict access to specific records in Dynamics 365 that are linked to SharePoint-located files, the restricted access applied in Dynamics 365 will not be applied to the SharePoint location and vice versa. SharePoint Server integration enables document management capabilities in Dynamics 365.

Setting up SharePoint integration

A system administrator sets up a SharePoint Server environment. The Dynamics 365 administrator (a user who has the SharePoint Site Collection Administrator role) selects the Dynamics 365 entities for which to enable the document management feature and specifies the target SharePoint Server. As part of specifying the target server, the Dynamics 365 Customer Engagement apps administrator specifies the SharePoint Server site collection or the SharePoint Server site URL.

Dynamics 365 users can create and manage SharePoint Server document location records after SharePoint Server integration is enabled. Dynamics 365 also allows for the automatic creation of folders on the server that is running SharePoint Server for entity records under certain conditions. However, automatic creation of folders cannot be done through the Dynamics 365 Customer Engagement apps Web Services.

SharePoint storage concepts

By using SharePoint Server document management capabilities, you can control the life cycle of documents in your organization: how they are created, reviewed, published, and disposed or archived. SharePoint Server uses a hierarchical storage model to store and manage documents. Some of the SharePoint Server storage concepts that you should know are as follows:

  • Site Collection

  • Site

  • Document Library

  • Document Folder

These storage objects provide the framework for the content management infrastructure that SharePoint Server provides.

For additional information, see Permissions required for document management

Working with document locations

With Dynamics 365 and SharePoint you have options when it comes to working with document locations. You can specify different SharePoint sites and folder location than the defaults.

Screenshot showing the top menu showing the document location options

If you access any SharePoint enabled entity and go to Related you will see you have access to documents for that record.

From here you can create new documents using the New menu or you can upload documents from this location. Note you can also create sub folders from the New menu.

From the document menu you have four other menu items that can be used regarding document locations.

  • Document Location – This will allow you to switch between the document location display in Dynamics 365 and another location if you have setup more than one document location.

  • Open Location – This will open the current document’s location displayed in SharePoint.

  • Add Location – Will allow you to add another document location on SharePoint and give it a name that will be displayed in Dynamics 365.

  • Edit Location – Will allow you to rename the location and edit the location on SharePoint.