Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Lorenzop06
New Member

Filter Power Automate flow from grabbing JPEG and PNG

I have a flow set up that grabs a daily report, takes the csv and saves it into a folder which then is used to feed a tableau dashboard. I am getting error messages because the flow is grabbing the csv file from the email as well as jpeg and PNG files from the outlook thread. How can I tell power automate to just grab the .csv file and ignore the images? Is there another condition I should add?

 

 

 
1 REPLY 1
Anonymous
Not applicable

Hi @Lorenzop06 ,

Based on the information you have provided, you need to add a condition to the process that specifically checks the file extension of each attachment and only continues if the file is a CSV. You can follow the steps below:

 

1. Add a new condition after the step of listing email attachments. You need to check if the attachment name ends in ".csv". You can refer to the following expression: 

EndWith(items('Apply_to_each')? ['Name'], '.csv')

 

2. Make sure that the operations used to process and save CSV files are placed in the "If yes" branch of the condition. Any operations that process other file types, such as JPEG or PNG, can be ignored or placed in the "if no" branch as needed.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors