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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Dataverse SharePoint integration: Document Locations per Business Unit

(0) ShareShare
ReportReport
Posted on by 16

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)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 102 Super User 2025 Season 2

#2
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 58

#3
Shivani Padalia Profile Picture

Shivani Padalia 36

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans