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 / Configure "Run After" ...
Power Automate
Answered

Configure "Run After" Apply to each when only some of the apply to each fails

(0) ShareShare
ReportReport
Posted on by 169

HI, I have a flow that is updating a rows in a table.  If the row has the data I need it updates, if not I append an array variable, and send an email to show what rows were not updated.  I only want to send an email when that variable has data in it.  I tried configuring the run after to only run on errors, but because the apply to each was successful, it never ran.  If I set it to run after success I get blank emails.  In my example below, how to I get the steps after the "Apply to each" container to only run if the variable has data in it?  I tried a condition, variable is equal to null, but that did not work.

 

sobenson_0-1673280683058.png

 

Categories:
I have the same question (0)
  • Barret Profile Picture
    652 Most Valuable Professional on at

    An empty array is not equal to null. Check the following blog post on some good ways to check if an array is empty for your condition.

    https://www.powertechtips.com/check-if-array-is-empty-power-automate/ 

     

  • Verified answer
    sobenson Profile Picture
    169 on at

    Thank you @barret that did lead me to the solution that I needed. https://www.powertechtips.com/check-if-array-is-empty-power-automate/   I the only reason I am not marking your response as the solution is I needed to add a compose field to my flow to make it work.  Trying to check if the array was empty with the code of  

    empty(variables('varMissingEmpID'))

    would give me a template error and my flow would not save.

    The article was creating an array, not using a variable to collect the data.

    Here is what I did

    sobenson_0-1673880018544.png

    I had to add the compose "OutputArray", add the variable, then run the condition 

    empty(outputs('OutputArray')) is equal to true

     

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 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard