Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • SCoutier Profile Picture
    7 on at
    Re: Multi Level Approval with null conditions to terminate flow

    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

     

     

  • Verified answer
    dbro Profile Picture
    194 on at
    Re: Multi Level Approval with null conditions to terminate flow

    @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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,547 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow