web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate creates...
Power Automate
Unanswered

Power Automate creates automatically "for each" controls in the flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I don't know if i am the only one with this issue.

I am working on a flow which will read my inbox an save attachments in any emails received from someone.

I use 1)something to start, 2)get emails, 3)for each attachments, 4)condition (control), if yes 5) the attachment is created in the folder A, if not 6) it is savec in the folder B.

The issue is that when I am creating step 4, The software creates a new "for each" control, and I cannot go forward it, because deleting it will delete the following steps. And when I am adding a new condition, it creates another "for each". When I define the proprieties of 5) it creates another "for each". it alxays create new "for each" controls. Did someone have this knd of issue?

Categories:
I have the same question (0)
  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Could you please show some screenshots about Apply to each and conditions?

    The point is the expression in your condition has something wrong.

     

    Best Regards,

    Kyrie

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    see attached screenshots (sorry for the language : french 😅)

  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    It does require two foreach. But the order of the two foreach is wrong.

    Firstly, get emails will return an array of emails and each email has an array of attachments.

    So, the order of foreach is following.

    vmingkzmsft_0-1693360320231.png

     

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 344 Super User 2026 Season 1

Last 30 days Overall leaderboard