Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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?
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.