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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Doubled approvals caus...
Power Automate
Unanswered

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard