Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

When email arrives, filter attachments

Hi All, 


Im trying to get the attachments when a email arrives in my sharemail inbox, and then move to upload mail, this is taking the attachments as the way it should, but the main part here is, even i have provided conditions here, that only accept the file if Attachment Name contains Zip, PDf, Xlsx or docx, else terminate or end the flow. 


I tried using parallel action as well seems like not working then i tried group condition as you can see in images below, but the thing is flow run successfully, but it does not filter the attachments, by this i mean it is even uploading image files. which i don't want 



can any one suggest where I'm i wrong in this? 


3rd image shows the highlighted content that image files are still uploaded even after condition runs. 



Experts' suggestions are appreciated, please.




Accepted Solutions
Community Support
Community Support

Community Support
Community Support

@Tapesh From the pictures you shared of the Group conditions I see you also have a set of conditions for jpeg and png, why is that? The group conditions for pdf, docx, zip and xlsx should already take care of that. What i mean based on the group conditions if a document is not either of the 4 then the flow should terminate. So you only need to specify group condition for  pdf, docx, zip and xlsx and if yes the flow continues, if no the flow terminates. See sample flow below, if either red or green is selected then flow send email, if its any other color then flow terminates. So in your case if attachment is either of the 4 types flow continues, if it either jpeg or png flow terminates.



Community Support
Community Support

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,344)