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 Automate
Answered

Help with a loop

(0) ShareShare
ReportReport
Posted on by 716 Moderator

Really simple flow. When a sharepoint list item is modified, it Gets Item.

Then a valid If test that branches on a comparison of the Approve_Level of the Item and a SentEmail value. 

The records start at 0 and 0 and the condition validates. The last step in the flow adds 1 to the SentEmail value so no emails gets sent until the approval_level increases. This works a treat.

My problem is in the send email loop.

The first step in the Yes side gets the approvers to email. That lookup works. For my current test, it's returning two users.

Then I added a single apply to each to tell it to send an email, but when I have/had just that individual apply to each, PowerAutomate decided I need them nested.

So the outer loop uses Get Approvers to Email.Value (which seems to be the right list)

And the inner loop uses the same value. 

Because of this, instead of the two of us getting one email each, we get two. I assume if there were three people in value we'd get three messages.

 

So how do I either have just one loop that works, OR, what is the current input in the inner loop?

Categories:
I have the same question (0)
  • Verified answer
    DCHammer Profile Picture
    716 Moderator on at

    I don't understand why it kept trying to add an additional loop but I made it do the right thing and it's now working. Thanks for reading.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard