web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Dataverse SharePoint integration: Document Locations per Business Unit

(1) ShareShare
ReportReport
Posted on by 18

Hi all,

I’m working with Dataverse/Dynamics 365 SharePoint document management (server-based integration).
I want to store documents in different SharePoint sites (and potentially different document libraries) depending on the record’s Business Unit (BU).

Goal

When an Opportunity is created, I want the Opportunity’s Document Location to point to a BU-specific SharePoint site (e.g., BU-A → Site A, BU-B → Site B), instead of using the single default site/library created by the Document Management Wizard.

Current approach

  • The entity (Opportunity) is enabled for SharePoint document management via the Document Management Wizard.

  • On Opportunity creation, I run a Power Automate flow that creates a sharepointdocumentlocation record (Document Location) and tries to set:

    • Parent Site or Location → a BU-specific sharepointsite record

    • Relative URL → e.g., Shared Documents/<some folder> (or I create hierarchical locations: library → BU folder → record folder)

Problem / error

Even though I create a Document Location pointing to the BU-specific site, the model-driven app still throws errors related to the default document library configured by the wizard, for example:

“Document library ‘’ has been renamed or deleted from SharePoint site ‘’. Rerun the document management wizard and try again.”

Also, if I try to set a path like Shared Documents/Test in Relative URL, I get an error that / is not allowed in folder names (so I understand I must create hierarchical document locations instead of using a slash path).

Questions

  1. Is it supported to route document locations per BU to different SharePoint Sites (different sharepointsite) for the same Dataverse table (Opportunity) while still using the out-of-the-box Documents grid?

  2. If yes, what is the recommended configuration/pattern to do this safely (wizard settings + creating sharepointsite and sharepointdocumentlocation records)?

  3. Does the Documents grid always validate the wizard’s default site/library first (making a “default” library mandatory to exist), even if a record has a custom document location pointing elsewhere?

  4. Are there any official docs or supported samples for “multiple SharePoint sites per entity based on BU” using server-based SharePoint integration?

Environment details (if helpful):

  • Platform: Dataverse / Dynamics 365 model-driven app

  • Automation: Power Automate creating sharepointdocumentlocation

  • Mapping: BU → SharePoint Site/Library

Any guidance, supported patterns, or documentation links would be greatly appreciated.

Thank you!

Categories:
I have the same question (0)
  • Suggested answer
    Tom_Gioielli Profile Picture
    3,084 Super User 2026 Season 1 on at
    The "standard" SharePoint integration with Dynamics CRM does not allow for splitting of locations based on Business Unit or any other criteria. The native integration will always use the primary active site and create folders based on the defined settings.
     
    For the scenario you are mentioning, it basically would be considered a manual SharePoint Integration as you will need to handle the creation of the Document Location folders and SharePoint folders yourself (I don't think the document location record itself performs the SharePoint folder creation). So if you want a split, you will need to create a flow that does the following:
    • Trigger on create of the Account record
    • Create a SharePoint folder for the Account in the proper Business Unit subfolder of the SharePoint Site you have defined
    • Create a Document Location record in CRM with the folder location and set the regarding field to the Account record
    Once you have done that, the SharePoint document grid should pick up and it will work as expected. The SharePoint Integration settings themselves in your org should be turned off, otherwise the system will be creating folders in the default manner, and you'll run into duplicates on every account (one in the proper location, the other in the default).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 125

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans