cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
d-c
Level: Powered On

Flow that checks for empty cells within an excel table

I have a flow that submits forms once they are completed to a table in a shared Excel sheet where each question gets it's own column of cells for answers to be added to. Now I'm trying to make a flow that checks for empty cells in certain columns and sends an email saying that a response needs to be submitted. Below are some screenshots of how I am trying to do this but no matter what it always evaulates to true.Screen Shot 2019-01-17 at 11.37.58 AM.pngScreen Shot 2019-01-17 at 11.38.17 AM.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Flow that checks for empty cells within an excel table

Hi @d-c,

 

Thanks for updating.

As you are using Excel Online (Business), please consider using the action List rows present in a table to get all the rows.

I have made another test for your scenario.

Under the button trigger, initialize a variable of type Array. Named it as ForBlank.

Add the action List rows present in a table to get all the rows.

Add an action Filter array to filter out all the rows with empty value in certain field:

@equals(empty(item()?['date']), bool('True'))

Add an Apply to each, select output Body from Filter array action, add action Append to array within the apply to each, set its value with the following code:

item()?['name']

Under the Apply to each, add a Condition with the following code to check if the variable is empty or not:

@not(empty(variables('ForBlank')))

Under if yes branch, add a Compose action with the following code:

join(variables('ForBlank'),' ,')

Then send an email with the compose output in the email body.

Under If no branch, send me a mobile notification with Completed in the text field.

Please take it for a reference and try with it on your side.

1.PNG2.PNG3.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Community Support Team
Community Support Team

Re: Flow that checks for empty cells within an excel table

Hi @d-c,

 

Do you want to check whether a field is empty or not?

It seems that you are using action Get tables, please take a try with the action Get rows.

I have made the following test which is working fine.

The function in the Condition is:

@equals(empty(items('Apply_to_each')?['Category']), bool('True'))

An image for your reference:

1.PNG

Please feel free post back if you need more help.

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
d-c
Level: Powered On

Re: Flow that checks for empty cells within an excel table

@v-yamao-msft I am using Excel for business, which does not have the option of "Get rows" is there a workaround for this? Also since I have multiple values per row this flow seems to send an email for each empty cell in that row. For instance the third row in my Excel sheet has 3 empty cells so I get 3 emails saying the column is empty. 

d-c
Level: Powered On

Re: Flow that checks for empty cells within an excel table

@v-yamao-msft  This is the error that I get when attempting to use "Get rows" but it doens't appear to be working because there is a business account in use. Screen Shot 2019-01-22 at 12.42.01 PM.png

Community Support Team
Community Support Team

Re: Flow that checks for empty cells within an excel table

Hi @d-c,

 

Thanks for updating.

As you are using Excel Online (Business), please consider using the action List rows present in a table to get all the rows.

I have made another test for your scenario.

Under the button trigger, initialize a variable of type Array. Named it as ForBlank.

Add the action List rows present in a table to get all the rows.

Add an action Filter array to filter out all the rows with empty value in certain field:

@equals(empty(item()?['date']), bool('True'))

Add an Apply to each, select output Body from Filter array action, add action Append to array within the apply to each, set its value with the following code:

item()?['name']

Under the Apply to each, add a Condition with the following code to check if the variable is empty or not:

@not(empty(variables('ForBlank')))

Under if yes branch, add a Compose action with the following code:

join(variables('ForBlank'),' ,')

Then send an email with the compose output in the email body.

Under If no branch, send me a mobile notification with Completed in the text field.

Please take it for a reference and try with it on your side.

1.PNG2.PNG3.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 276 members 4,265 guests
Please welcome our newest community members: