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 / Multi Level Approval w...
Power Automate
Answered

Multi Level Approval with null conditions to terminate flow

(0) ShareShare
ReportReport
Posted on by 7

Good Morning @Reza,

 

I have built the flow that you outlined in your YouTube video: Power Automate Multi Level Approval Workflow | Serial Approval | Multiple Approvers. The change that I made was in the Approvers list. I used the dynamic content from the SharePoint list to assign the sequential approvers in the array.

 

The problem that I am having: When there are only two approvers needed and listed in the SharePoint Columns the flow fails because the array lists three dynamic approvers. A null value in the third approver stalls the flow and makes it fail at the last condition.

 

Ideally: If the last approver approves, and the next value is null then the flow would mark the SharePoint item approved. 

 

Any suggestions would be amazing! Your flow is so elegant... I'm hoping that I can work it into our situation.

 

Thanks,

Shawnna

 Flow 1.PNGFlow 2.PNG

Categories:
I have the same question (0)
  • Verified answer
    dbro Profile Picture
    194 on at

    @SCoutier ,

     

    This is how I check for an empty item in an array variable.  

    1. Initialize your Approver Array Variable
    2. Initialize another Array Variable (call it actual approvers or something)
    3. build an apply to each (Approver Array)
    4. Condition - Current item is not equal to "" (leave it blank with no quotes)
    5. In yes branch append item() to Actual Approver array.
    6. (optional) - you can try setting the value of actual approver array to your original approver array.Approvers1.jpgvarApprovers.jpg
  • SCoutier Profile Picture
    7 on at

    This worked like a charm! I had to change the second apply to each to varActualApprovals, and it ran like a dream. Thank you so much!!

    SCoutier_1-1633451566013.png

     

     

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard