cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VivekQibs
Frequent Visitor

Null rows in date column in sharepoint

Hi 

 

Can any one help me to create a flow with query filter equal Empty or blank for finding items with Blank rows in Date column in sharepoint.Then convert it to an HTML table and send email

 

 

THanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-micsh-msft
Community Support
Community Support

You could take use of the 

Empty() function to check if the field has no value:

Function reference:

Empty

For example:

1. Get the SharePoint List items with SharePoint Get Items action,

2. Initialize a variable with type set to array, name it to "Table",

3. Add a condition, choose the date field from the Get Items action,

4. The Flow would add an Apply to each automatically, under the Condition, click Advanced mode, switch the code with the format below:

@or(equals(items('Apply_to_each')?['Date'], ''), empty(items('Apply_to_each')?['Date']))

5. Under the Yes part, Add a Append to Variable action, choose the Table Variable, and the value set to Current Item selected from the Apply to each,

6. Without the Apply to each, add a select action, choose the field that you would like to show in the HTML table, Map the name with the related field,

7. Add the create HTML Table, 

8. Add the Send an Email Action.

Image reference:

11.PNG12.PNG13.PNG

 

Regards,

Michael

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

View solution in original post

2 REPLIES 2
v-micsh-msft
Community Support
Community Support

You could take use of the 

Empty() function to check if the field has no value:

Function reference:

Empty

For example:

1. Get the SharePoint List items with SharePoint Get Items action,

2. Initialize a variable with type set to array, name it to "Table",

3. Add a condition, choose the date field from the Get Items action,

4. The Flow would add an Apply to each automatically, under the Condition, click Advanced mode, switch the code with the format below:

@or(equals(items('Apply_to_each')?['Date'], ''), empty(items('Apply_to_each')?['Date']))

5. Under the Yes part, Add a Append to Variable action, choose the Table Variable, and the value set to Current Item selected from the Apply to each,

6. Without the Apply to each, add a select action, choose the field that you would like to show in the HTML table, Map the name with the related field,

7. Add the create HTML Table, 

8. Add the Send an Email Action.

Image reference:

11.PNG12.PNG13.PNG

 

Regards,

Michael

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

View solution in original post

Hi thanks .It works,

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (63,918)