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 / Doubled approvals caus...
Power Automate
Answered

Doubled approvals caused by apply to each loop

(0) ShareShare
ReportReport
Posted on by 36

Hello all, 

 

I've ran into a bit of a problem with my flow. 
I'm currently using it as it is, but it would be nice if it wasn't sending those doubled approvals and emails

 

MVMar_3-1683821007192.png

 

 

Basically everything below/above the red comment boxes is running fine.

The problem is that I cannot get data out of the approvals unless it's in an apply to each loop. I can use the Outcome for my if conditions and that's fine, but the comment in the approval for example cannot be added to an email or another approval after this. And this is a requirement here. 
I have the exact same flow running in parallel to this one, but in the 1st approval there's only 1 person who needs to approve. Not 2. That's the only difference. I have no such issues there. 

 

Can anyone suggest a better way to handle this? Or maybe something I'm missing?

The only thing I could think of is if I add he person from the 2nd approval to the 1st.

This way there's only one approval with "everyone must approve" condition but I lose the option for the comments from the 1st approval shared with the requester or with the 2nd approver. They all see the same thing. 


I read somewhere that I can use a first() expression, but I'm not sure if that will work in my case. 

 

 

I'll be thankful if someone can give me some ideas. 

Categories:
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    It has been a long time since I made this approval flow, but I remember having an issue with the comments. 

     

    It looks like I put a Compose action after the supervisor's approval, and in that compose I got the "first" comment by using item [0]. It might work with the first() expression, but apparently I did not use that method.

     

    Luckily I put notes in my actions to help me remember. I don't know if this will solve your problem, but you could see if it works for you.

     

    This is the expression in the Compose step after the approval to get a single comment.

     

    outputs('Wait_for_an_approval_Supervisor')?['body/responses'][0]?['comments']

     

     

    Here is a snapshot of my flow

    wskinnermctc_0-1683824491354.png

     

    Then I used the Compose step as the comments to put in emails afterwards.

  • MVMar Profile Picture
    36 on at

    Thanks, I figured it out now.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 159

Last 30 days Overall leaderboard