Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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?

  • 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

     

     

  • Re: Power Automate creates automatically "for each" controls in the flow

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

  • 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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard