Showing results for 
Search instead for 
Did you mean: 
New Member

Filter attachments

I'm trying to save mail attachments to sharepoint library.

If email contains images in body they are saved as image001,002 etc. attachments, I need to exclude this files from saving.

I've created flow, and when I try to select Attachment Name as Value I have this error.


I understand that I need something like this in condition but can't select that NAME parameter


Community Support
Community Support

Hi Anatoliy,


From the error message, it seems that you are trying to configure a foreach inside of another foreach. Do you have two foreach within your flow?

Which browser are you using?

Could you show me a full screenshot of your flow configuration for better understanding?


I tried to create a flow according to your description, I can select Attachment name from dynamic content.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

>Do you have two foreach within your flow?


>Which browser are you using?

Internet Explorer 11

>Could you show me a full screenshot of your flow configuration for better understanding?

This is flow was created from template. And i added Delete mail and Condition



I can't select Name. So I tried this: 

Select Subject.

Then go to advanced mode:


Change Subject for Name.

Save flow.

And. Nothing. Flow not working anymore.


Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Users online (12,866)