Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Can I relate files from multiple folders in a SharePoint Document Library to a record?

Posted on by 166
Hello everyone, 
 
In SharePoint I have a document Library called 'Pool' that is a pool of documents for different companies, and its structure is as follows:
  1.  Folder 'Company 1'
    • Folder 'Legal Documents'
      • LegalDoc1.pdf
      • LegalDoc2.pdf
      • LegalDoc3.pdf
    • Folder 'Official Certificates'
      • OfficialCertificate1.pdf
      • OfficialCertificate2.pdf
      • OfficialCertificate3.pdf
    • Folder 'Presentations'
      • Presentation1.pdf
      • Presentation2.pdf
      • Presentation3.pdf
 
  1.  Folder 'Company 2'
    • Folder 'Legal Documents'
      • LegalDoc1.pdf
      • LegalDoc2.pdf
      • LegalDoc3.pdf
    • Folder 'Official Certificates'
      • OfficialCertificate1.pdf
      • OfficialCertificate2.pdf
      • OfficialCertificate3.pdf
    • Folder 'Presentations'
      • Presentation1.pdf
      • Presentation2.pdf
      • Presentation3.pdf
 
  1. Folder 'Company 3'
    • etc...
 
In Dynamics I added a canvas app that allows me to select multiple documents from the above, and once a button is clicked, a power automate flow runs and:
  1. Creates a new Folder in Sharepoint containing the selected documents.
  2. Creates a document location in Dynamics pointing to the created folder in Sharepoint.
  3. Relates the Document Location to the Dynamics record.
 
However creating so many instances of the same documents is becoming redundant and filling my Sharepoint with unnecessary files. Is there a way to relate the Dynamics record to the selected documents without copying them to a new folder and relating its Location?
 
For example if I need LegalDoc1.pdf from Company 1 and OfficialCertificate1.pdf and OfficialCertificate2.pdf from Company 2, can I relate their current locations in Sharepoint to my Dynamics record?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans