Skip to main content
Community site session details

Community site session details

Session Id : 5vQUAJIkcn2nfOAbTGBto3
Power Automate - General Discussion
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 29 Aug 2023 08:19:00 by

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?

  • v-mingkz-msft Profile Picture
    Microsoft Employee on 30 Aug 2023 at 01:52:06
    Re: Power Automate creates automatically "for each" controls in the flow

    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

     

     

  • Community Power Platform Member Profile Picture
    on 29 Aug 2023 at 11:39:13
    Re: Power Automate creates automatically "for each" controls in the flow

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

  • v-mingkz-msft Profile Picture
    Microsoft Employee on 29 Aug 2023 at 08:24:48
    Re: Power Automate creates automatically "for each" controls in the flow

    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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2