Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

How to create a folder from email subject from group email?

I want to save the attachments from an email sent to a specific group address into a new sharepoint folder named after that email. 


This is what I have set up so far, which saves the attachments directly to the sharepoint folder: automate.PNG


Any help/direction would be much appreciated! 

Super User
Super User


Take a look at the SharePoint Create New Folder action.

Also, have you considered just adding an additional column in the library and populating that column with the same data that you would have  used for the folder name.  Then, just create a view grouped by that column.

Let me know if you need additional help.



If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.


Hi Scott, 


I've been unable to create a new folder using that function. I've tried adding this in 'Apply to Each 3', but when i test the flow, i get the following error message: 

'Path for the new folder is not provided\r\nclientRequestId: 8421c20b-8842-4dd1-ba05-a31fa9fc4144\r\nserviceRequestId: 8421c20b-8842-4dd1-ba05-a31fa9fc4144"'
Should i be positioning this in a different spot?

I've managed to create a new folder where I can save the attachment using the following:autormate 2.PNGautomate3.PNG


However, I still want the folder name to show up as the name of the subject line instead of the post ID. It's currently a string of letters which is the 'unique identifier' 

Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (3,963)