Announcements
Hi there!
Yes, it is possible to dynamically set or update the document location and folder name for activity records (like tasks or emails) in Dynamics 365 using Power Automate, though it requires working directly with Dataverse.
Use Power Automate to create the SharePoint folder (via SharePoint HTTP request or Graph API).
Use the Dataverse connector to create a record in the sharepointdocumentlocation table.
sharepointdocumentlocation
Set your custom folder name
Set the correct parent location (must exist)
Bind the folder to the activity record using the regardingobjectid
regardingobjectid
This blog offers a very helpful walkthrough: Automatically create custom SharePoint folder structure for an entity in Dynamics 365 CE
Let me know if you want help setting up the flow or the JSON for the Dataverse record!
If this post helped you, please click "Does this answer your question?" and give it a like to help others in the community find the answer too!
José MartÃnez Lago Solution Architect | Dynamics 365 & Power Platform Empowering low-code consultants to deliver high-impact solutions Blog: thatsagoodquestion.info LinkedIn: martinezlago
José MartÃnez Lago Solution Architect | Dynamics 365 & Power Platform Empowering low-code consultants to deliver high-impact solutions
Blog: thatsagoodquestion.info LinkedIn: martinezlago
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 959
Valantis 872
Haque 589