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 / Power Automate flow th...
Power Automate
Unanswered

Power Automate flow that uses information in subject line to send email attachments to the corresponding folder

(0) ShareShare
ReportReport
Posted on by 8

For instance,

 

I would email an attachment with employee information in a pdf format with the subject line "John Doe" and it would then send that to the document library and put it in John Does folder.

 

I have it set up to send to a folder but I'm in need of a dynamic solution as the destination will be different each time.

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @dmt123 I'd recommend using a Compose action to Compose your folder path. You can even test out the dynamic content prior to creating the attachment files (recommended). 

    creativeopinion_0-1715873048629.png

    Run a test to ensure that the Compose action outputs the correct folder path. Then insert the output from the Compose action into the Create a File action. 

    creativeopinion_1-1715873073526.png

     

     

    I demo a similar scenario in this section of a tutorial. However, I'm using a dynamic date for the folder name. Check out the full tutorial: Save Email Attachments to SharePoint with Microsoft Power Automate

    Power Automate doesn’t have a download attachment from outlook action. In this Power Automate Video tutorial, I’ll show you how to use the Get Attachment (V2) action in combination with the Create File action to get your email attachments onto SharePoint.

     

    The Create File action will overwrite any files that already exist with the same name. In this tutorial, I’ll show you how you can append a timestamp to the end of a file name to prevent your file from being overwritten.

     

    I’ll also show you how to set up your flow so that you can trigger it manually while building it so you don’t need to wait for an email to arrive. At the end of the video I’ll show you how adding trigger conditions to your flow can prevent it from triggering if certain conditions aren’t met. Although the final flow uses the When a new email arrives in a shared mailbox (V2) trigger, you can use any of the When a new email arrives triggers for your flow. Adjust this flow to suit your needs!

     

    IN THIS VIDEO:

    ✅ How to Automate Downloading and Uploading Email Attachments to SharePoint

    ✅ How to Use a the Get Email (V2) action

    ✅ How to Use the Get Attachment (V2) action

    ✅ How to Create Attachment Files using the Create File Action

    ✅ How to Prevent the Create File Action from Overwriting a File

    ✅ How to use Split the Filename from its Extension

    ✅ How to Append a Timestamp to a File Name

    ✅ How to use the When a New Email Arrives in a Shared Mailbox (V2) trigger

    ✅ How to use the Convert Time Zone action

    ✅ How to add Trigger Conditions to your Flow

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard