Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

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

(1) ShareShare
ReportReport
Posted on by 165
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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans