Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Filtering/Creating an Array of Attachments

(0) ShareShare
ReportReport
Posted on by 18

I'm trying to filter attachments from a Teams email and create a new attachment array, with only attachments in pdf/docx/pptx/xlsx/jpg/jpeg formats. I don't think I'm making my array correctly. I tried checking it with an apply to each loop emailing myself each attachment in the array and I got dozens more emails than the 2 attachments I expected (including .png ones). Does anyone see what I'm doing wrong?

aallen5658_0-1693431112641.png

 

 

  • Verified answer
    creativeopinion Profile Picture
    10,450 Super User 2025 Season 1 on at
    Re: Filtering/Creating an Array of Attachments

    @aallen5658 You need to pull your second apply to each action outside of the first one. 

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1