cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VivekQibs
Level: Powered On

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 Team
Community Support Team

Re: Null rows in date column in sharepoint

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 Team
Community Support Team

Re: Null rows in date column in sharepoint

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

Highlighted
VivekQibs
Level: Powered On

Re: Null rows in date column in sharepoint

Hi thanks .It works,

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,526)