Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Email Attachment Flow HELP !!!!!!!!

(0) ShareShare
ReportReport
Posted on by 2

How do I build a flow to save all email attachments to a new FOLDER that is named depending on the sender?

So example ....... @TomSmith sends an email to me with 2 attachments and the flow creates a new folder in SharePoint named Tomsmith and downloads both attachments to the folder.  

  • Verified answer
    v-LilyW-msft Profile Picture
    on at
    Re: Email Attachment Flow HELP !!!!!!!!

    Hi @Thomas12 

    Has your issue been solved?

    I created a simple flow. You can refer to the following:

    vLilyWmsft_0-1625638125605.png

    Use the following formula to get the sender’s name.

    Expression:first(split(triggerOutputs()?['body/from'],'@'))

    vLilyWmsft_1-1625638125610.png

    When LilyWang send an email to me with attchments as below:

    vLilyWmsft_2-1625638125613.png

    The attachments will be created to the Folder named LilyWang

    vLilyWmsft_3-1625638125615.png

    Hope the content above may help you.

    Best Regards

  • tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: Email Attachment Flow HELP !!!!!!!!

    It was just an example, use the ‘From’ dynamic content in the folder path, not the ‘User name’. 

  • Thomas12 Profile Picture
    2 on at
    Re: Email Attachment Flow HELP !!!!!!!!

    This didn't seem to work. I need each attachment in its own subfolder. It just keeps putting all the attachments in the same folder. I need subfolders created according to the sender of the attachment.  

  • tom_riha Profile Picture
    10,127 Most Valuable Professional on at
    Re: Email Attachment Flow HELP !!!!!!!!

    Hello @Thomas12 ,

    you can add the name of the user to the file path. If the folder doesn't exist, Power Automate will create it automatically, e.g.

    image.png

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1