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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Checking if the field/...
Power Automate
Unanswered

Checking if the field/column is empty before starting the approval

(0) ShareShare
ReportReport
Posted on by 53

Hi! I have a scenario if you could help with that. I have a list with 4 columns "Application name" and a person column "Approver", a person column "Provisioner 1", and another person column "Provisioner 2". Specific people are assigned for all 3 person columns. When an item is created, i want it to start and wait on approval and send it to the assigned "approver" first, then once approved to start and wait for an approval again and send it to the assigned "provisioner 1", and then once that one is approved, start and wait for a third approval and send it to the "provisioner 2". 

I got the first 2 approvals to work, but i am having issues with the third approval that is pulling the information from the "Provisioner 2" column. This column has people assigned to it, but some are blank, non assigned. I would like for the flow to check if anyone is assigned first. If yes, move it forward and send it to that last person "Provisioner 2" for final approval. If no one is assigned, i would just like for the flow to be done or whatever else is needed to make the flow be done, if that makes sense. I have followed your video for multi-select approvals with compose, select and join. I just can't figure out how to check if the column is empty (does not contain an assigned person), before starting and waiting for an approval for the "provisioner2". Would anyone be able to help with that?

Please see below the error i receive.

 

1.PNG2.PNG

 

This is my flow before it is ran.

3.PNG4.PNG

Please note "Provisioning1" in the flow is "Provisioner2" column i was referring to.

@RezaDorrani @ScottShearer @Pieter_Veenstra @Pstork1 

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at
    Re: Checking if the field/column is empty before starting the approval

    Hey @andjelamiha97 

    Try using this:

    Initialize an empty string variable. And compare the values to it.

    Sundeep_Malik_0-1663995741061.png

    Or initialize an empty array and compare it with it:

    Sundeep_Malik_1-1663996071718.png

     

  • andjelamiha97 Profile Picture
    53 on at
    Re: Checking if the field/column is empty before starting the approval

    Hi! Thank you! Do i initialize a variable before my condition 3 or? And would you please be able to tell me what specific info is in the initialize a variable and the condition field? I am not able to see, sorry!

  • Sundeep_Malik Profile Picture
    6,484 on at
    Re: Checking if the field/column is empty before starting the approval

    Hey @andjelamiha97 

    You can initialize the variable in the starting as well as before the compose too. Just make sure you dont do it inside an apply to each action, otherwise it wont let you.

    I have kept initialize field empty.

    After that in the condition I am comparing the output of the previous compose(in your case email), to the above initialized variable.

  • andjelamiha97 Profile Picture
    53 on at
    Re: Checking if the field/column is empty before starting the approval

    I tried that and it still comes back as false every time. I initialized a variable at the beginning and then compared it in the condition to the output of select.

  • Sundeep_Malik Profile Picture
    6,484 on at
    Re: Checking if the field/column is empty before starting the approval

    @andjelamiha97 

    I hope you took the array variable, not string. Because its working for me.

    Sundeep_Malik_2-1664003382327.png

     

    Sundeep_Malik_0-1664003347461.png

    Sundeep_Malik_1-1664003359786.png

     

  • Pstork1 Profile Picture
    68,678 Most Valuable Professional on at
    Re: Checking if the field/column is empty before starting the approval

    If Provisioning 2 is a multiselect column then the people will come in as an array.  To test for an empty array use the Length() function.  If Length(<<arrayvalue>>) = 0 then the array is empty.  Add that test as the first condition in Condition 3 and set the conditions to And.  It tests the conditions in order but since its and it will only test until it finds a false.  So if the array is empty it will automatically go to Update Item instead of sending another Approval.

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