8 Feb’19

D365 GeneralIntegrating SharePoint with D365 Portal


This blog explains how we can add files from D365 Portal directly into SharePoint which was long awaited feature missing from Portals.

Below are the Steps:

Step 1: Set up SharePoint integration from Portal Admin Center

1. Go to the Dynamics 365 Administration Center page and select the Applications tab.

2. Select the name of the portal for which you want enable SharePoint integration, and then select Manage.

3. Click on Set up SharePoint integration –> Enable SharePoint integration.

4. Click on Enable button it will then ask you to sign in again.

5. Enter D365 CE (MS CRM) credentials to sign in again.

6. Click on Accept to grant the required permissions.

7. You will get the below message.

Step 2: Enable document management for entities (Customization in D365 CE)

NOTE: If document management is not enabled already then follow below steps.

  1. Go to Settings –> Document Management –> Document Management Settings
  2. Select entity
  3. Click on Next and Finish.

Step 3: Configure the appropriate form to display documents

  1. We need to add Document Location subgrid in the form which will get displayed in portal.
    (NOTE: Add subgrid on Edit form to edit the record in portal only.)

Step 4: Creating and Assigning Entity Permissions.

1. Create entity Permission of Scope “Global” for Case (Incident) Entity.

2. Click on “+” to Add Child Entity Permission for “Document Location”.

3. Click on “New”.

4. Enter below details.

Entity Name: Document Location

Scope: Parent

Parent Entity Permission: Case_Global(Select the name of parent entity from lookup)

Parent Relationship: Select the name from drop down.

Select all the Privileges.

5. Save the record.

6. Your Global Entity Permission should look like below.

7. After Creating Entity Permission successfully assign web role to the entity permissions.

Sign in to Portal

1. Open any Case record.

2. You can see Document Section below from where you can “Add files” or Create “New folder

3. Click on “Add files” button you are shown a pop-up window from where you can choose the files to upload.

4. You can see the New Folder is created in SharePoint for that Particular Case and file is also uploaded inside respective folder.

5. Click on “New Folder” to create new folder this will get created inside the parent folder “Case_CaseGUID” in SharePoint.

6. From portal you can go inside the folder and then upload files which gets uploaded inside the respective folder in SharePoint.

Add Files” in newly created folder.

New Folder and Files in SharePoint.

Written by

Vaishali Vyas

Software Engineer

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Bulk Clear field values in D365

    15 February’ 2019

    Introduction: A very handy approach for admins and users of Dynamics 365 who want to bulk clean up field values – And...

    Read more
  • Integrating SharePoint with D365 Portal

    8 February’ 2019

    Introduction: This blog explains how we can add files from D365 Portal directly into SharePoint which was long awaited ...

    Read more
  • Run OnDemand Workflow in D365 CE UCI Apps

    31 January’ 2019

    Introduction: This blog explains the steps on how to enable OnDemand Workflow in D365 CE UCI Apps. Scenario: After clien...

    Read more
  • Create Folder Strucutre in SharePoint using MS Flows

    31 January’ 2019

    Introduction: In this blog we will see how we can create folder structure in SharePoint for Leads when the record is cr...

    Read more
  • Hide table or column in Power BI

    30 January’ 2019

    Introduction: In this article we will read on how to hide a table or column in Power BI Web Service. Scenario: I have a...

    Read more