web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Save email PDF attachm...
Power Automate
Unanswered

Save email PDF attachment to the current month-named folder in SharePoint

(0) ShareShare
ReportReport
Posted on by 10

My department's shared mailbox receives 9 automatically generated emails each day with a single PDF file in each email. These 9 emails and attachments represent 9 different buildings. The email's subject and its PDF attachment are similarly named, according to the building. There are 9 SharePoint folders which these 9 files need to be uploaded to, but within each of these 9 folders are 12 subfolders, one for each month of the year. How can I get Flow to save each of these 9 PDF email attachments to their respective current month's subfolder, and have that continue throughout the year unattended? If necessary, I can rearrange the SharePoint folders so the month folders are after the building name folders rather than before.

 

Thanks for the help! I've scoured this forum and the net looking for this scenario without success. 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,981 Most Valuable Professional on at

    Hi,

     

    Flow step 'SharePoint Create File' there is a property called 'Folder Path'. Here you need to set the below expression

     

    utcNow('MMMM')

     

    This is will return the current month name. 

     

    If you any further help let me know.

     

  • abm abm Profile Picture
    32,981 Most Valuable Professional on at

    Hi @jeffchapmanjc 

     

    Do you need any futher help in this? 

  • ShortRave Profile Picture
    3 on at

    @abm I already have a full set of month-named folders I need to funnel these month-named files into each day. They are named as follows, "01 January", "02 February", and so on. So if I were to include your suggestion in the "Folder Path" section, can you say how it would need to be modified? It currently looks like this: 

     

    /Shared Documents/2019/11 November/Allenmore Hospital Daily Census Report

     

    So I'm thinking your suggestion would look like this (please correct me if not):

     

    /Shared Documents/2019/11 utcNow('MMMM')/Allenmore Hospital Daily Census Report

     

    I don't mind having to create 12 flows (one per month) for each of the 9 file uploads I need to run this automation on. I just want to ensure it works for the month changeovers. Thanks for help!

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard