cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
r96359
Helper IV
Helper IV

Condition filter for email attachments before saving

Is there any way to filter the attachments for just xlsx files for example?

I get a lot of jpg, png signature images etc that I do not want to save. I just want to save xlsx files for example.

In power automate, I would set up a condition step but I don't see how to do that in power automate Desktop.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
miketran13
Solution Specialist
Solution Specialist

Hi,

You can have a look at the below steps, I have these steps:

Retrieve Email Messages (Save attachments to a temp folder)

Get file in Temp folder (only get .xlsx files) 

Move these files to folder Done

Delete all files in Temp folder

 

step1.pngstep2.png

Thanks and hope it can help you. 

Mike

---------------------------------

Did I answer your question? Please consider to Mark my post as a solution! to guide others

View solution in original post

4 REPLIES 4
miketran13
Solution Specialist
Solution Specialist

Hi,

 

For now, I don't see any condition filter for email attachments that you can filter by document type. And even while iterating for each item inside the loops of all attachments, I also don't see any data that you can filter by type.

 

I think you can just make a workaround solution for this by creating another flow to delete the unnessesary files you don't need once the file is saved.

 

Thanks and hope it can help you. 

Mike

---------------------------------

Did I answer your question? Please consider to Mark my post as a solution! to guide others

Hello @miketran13 ,

 

Thanks. Is this the same answer for filtering by a contains string?

Is there any operation currently that interrupts the download of the attachments and allows logic to supersede?

miketran13
Solution Specialist
Solution Specialist

Hi,

You can have a look at the below steps, I have these steps:

Retrieve Email Messages (Save attachments to a temp folder)

Get file in Temp folder (only get .xlsx files) 

Move these files to folder Done

Delete all files in Temp folder

 

step1.pngstep2.png

Thanks and hope it can help you. 

Mike

---------------------------------

Did I answer your question? Please consider to Mark my post as a solution! to guide others

@miketran13 

I figured that might be my only other path (no pun intended). I used delete folder which deletes all files within as well. Appreciate the help! Cheers

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,869)