cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (4,716)