Showing results for 
Search instead for 
Did you mean: 
New Member

Document review required notification in SarePoint Online

I am looking to send an email to a document owner when a file, in a document library sub-folder is up for review.

I am getting the following error with the filter array I tried to establish if the document review date has passed: 


The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@less(item()?['ReviewDate'], addDays(utcNow(), 0, 'yyyy-MM-dd'))' failed: 'The template language function 'less' expects two parameter of matching types. The function was invoked with values of type 'Null' and 'String' that do not match.'.

Super User
Super User


Try this as your filter query in your Get Files action:

ReviewDate eq 'formatDateTime(utcNow(),'yyyy-MM-dd)'


Note that the bold text is an expression and must be entered in the expression window and enclosed in single quotes.




If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.


Thanks Scott, That worked to get the flow to run. It sent me an email response though for every file in the library, not just the ones where the review date has passed?

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,624)