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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Automatically creating 2 folders within a Contact's sharepoint folder

(0) ShareShare
ReportReport
Posted on by 803

Hello, we have our Contact entity connected to Sharepoint, and each contact gets a folder. However, it would be nice to have folders within this folder, such as "Folder A" and "Folder B." Is it possible to automatically have 2 folders get set up to exist within each Contacts folder? And would there be an easy way from within Dynamics to set a default folder, either Folder A or B, and then switch between the two as needed. Thank you in advance for any insights. 

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Ben,

    Yes. 

    When you initially access the documents subgrid a new folder is automatically created – accompanied by a record in SharePointDocumentLocation table. This record is the glue that ties the SharePoint folder to a specific record in Dataverse. The referenced record is saved in the RegardingObjectId.

    But if you want to create sub folders in SharePoint, you need do some customizations.

    So you can refer following links to achieve it through power automate or code:

    Using Power Automate (Flow) to Create Sub-Folders in SharePoint (loganconsulting.com) 

    Automatically create subfolders in SharePoint after record is saved in a model-driven App - pragmatic development (pragmatic-development.io)

  • Ben T Profile Picture
    803 on at

    very helpful, ty

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 159

#2
ManoVerse Profile Picture

ManoVerse 54 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 54 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans