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 / How do I create a flow...
Power Automate
Unanswered

How do I create a flow which looks for emails with a specific subject line and then downloads only CSV attachments?

(0) ShareShare
ReportReport
Posted on by 25

I have been trying to do this for what seems like something so simple. I did manage to create one, but it downloaded all attachments and now I can't remember how I did it. Each time I create a flow, it keeps nesting it and nesting it further in 'For each' loops. Any ideas?

Categories:
  • creativeopinion Profile Picture
    10,508 Moderator on at

    @badgerfifteen You might find this tutorial helpful: 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

     

    ----

     

    If you will be using the When a New Email Arrives (V2) trigger, I'd recommend adding a Trigger condition to your flow. This would prevent your flow from triggering every time a new email arrives. Instead, you can specify which conditions should be true before your flow is triggered.

     

    Check out this YT Tutorial for more details on how to add Trigger Conditions to your flow: 4 Ways You Can Use Trigger Conditions in Your Microsoft Power Automate Flow

     

    If you are using an Automated Cloud flow trigger in your flow—you need to consider adding trigger conditions.

     

    Do YOU 🫵 know what a trigger condition is? Trigger conditions can be set in most flow triggers. These conditions you set must be true for the trigger to fire. In this Power Automate tutorial, I’m going to show you how to use trigger conditions in your flows to control when your Power Automate flows trigger.

     

    If your plan has flow run limits—you can avoid triggering your flows unnecessarily by using trigger conditions.

     

    I’ll cover four different flow examples that would benefit from trigger conditions:

    ⚡️ Triggering a flow when a column is changed to a specific value

    ⚡️ Triggering a Flow When an Event Updated or Deleted

    ⚡️ Triggering a Flow When a New Folder is Created

    ⚡️ Triggering a Flow When a Specific Email is Received I’ll also show you a trick on how to easily create the expressions needed and give you a few tips on how to troubleshoot your flow.

     

    IN THIS VIDEO:

    ✅ Four different flows that would benefit from trigger conditions

    ✅ What is a trigger condition?

    ✅ How to add a trigger condition to your flow

    ✅ How to trigger a flow when a column is changed to a specific value

    ✅ How to trigger a flow when an event is updated or Deleted

    ✅ How to trigger a flow when a new folder is created

    ✅ How to trigger a flow when a specific email is received

    ✅ How to troubleshoot a trigger condition

    ✅ How to prevent case sensitivity issues with a trigger condition

    ✅ How to use the filter array action to easily compose an expression that can be used in a trigger condition

     

     

    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

  • badgerfifteen Profile Picture
    25 on at

    Thanks. I have done the first half. How do I filter by CSV?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard