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 / Conditional Approval O...
Power Automate
Unanswered

Conditional Approval Outcome from Within "Apply to Each"?

(0) ShareShare
ReportReport
Posted on by 43

I have a "Start and Wait for Approval" step, which then leads into a Conditional of "Outcome = Approved (Yes/No)"

 

My problem now is that I've added some information within the 'detail' portion of the Approval step which obtains data from a "Get List Item" earlier in the flow. This has therefore embedded the Approval within an "Apply to Each" and stopped the condition from being able to obtain the Outcome directly.

 

Does anyone know a way round this beyond just removing the 'detail' from the Approval step?

Categories:
I have the same question (0)
  • Unknown geen idee Profile Picture
    1,757 on at

    Dear APM1994,

     

    I have previously been successful in preventing 'Apply to each' loops with the first() expression. The first() expression picks up the first entry of an array. 

    The syntax is a bit weird though (at least I struggled with it), but it works well enough.

     

    Hope the suggestion helps,

    Happy flowing,

    Koen

  • Unknown geen idee Profile Picture
    1,757 on at
  • APM1994 Profile Picture
    43 on at

    I need to get about 8 or so values from the list. Unless I've misunderstood, your solution would mean I'd need to do an expression for each column? Which would be quite inefficient

  • Unknown geen idee Profile Picture
    1,757 on at

    Dear APM1994,

    I assume your 8 values are within the first 'row' of the array you pull from the 'Get List Item'. 

    Then you should be able to just define something like below:

     

    first(outputs('Get_List_Item')?['body/value'])['colum1']

    first(outputs('Get_List_Item')?['body/value'])['colum2']

    first(outputs('Get_List_Item')?['body/value'])['colum...']

     

    Happy flowing, hope it helps,

    Koen

  • APM1994 Profile Picture
    43 on at

    They're in the last row. In my "Get items" query, I have done "ID desc" (Order by) and "1" (Top Count) in order to extract the latest item added to the list

     

    So I've already extracted the row I need in that method. So I guess I don't need the "first" aspect of your above?

  • Unknown geen idee Profile Picture
    1,757 on at

    Dear APM1994,

    That depends ... the output you get from your action will still in array format, isn't it?

    So as soon as you refer to this data you will automatically get an 'Apply to each', unless you use first() or some other way ... 

     

    Happy flowing,

    Koen

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
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard