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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Email Attachment Flow ...
Power Automate
Unanswered

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.  

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    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

  • Thomas12 Profile Picture
    2 on at

    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,185 Most Valuable Professional on at

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

  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard