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

Recurring flow

Hi 

 

I'm getting stuck on a recurring flow and hoping somebody can help.  The flow was built to cycle through the data on a sharepoint list 3 times a week and send an email provided that the reminder date was exceeded and the completion date was blank.

 

The first thing i'm getting stuck on is the OData filter.  I tried Completiondate eq 'null' with 'null' being an expression but it didn't like that and returned a date format error.

 

The second thing is that the reminder email is being sent for every item in the list not for the specific items required where reminder date was exceeded and completion date is blank.

 

I've copied my flow so far below.  I'd really appreciate any help.

 

Thanks

 

Adamrecurrance 1.PNGrecurrance 2.PNG 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

The key here is that its an ODATA query so you aren't actually looking for the function Null.  Just use the keyword null without single quotes.  Like this

Completiondate eq null


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

View solution in original post

You can add additional queries to the Odata filter.  Like this

(CompletionDate eq null) and (ReminderDate le '@{utcNow('yyyy-MM-dd')}')


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

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

The key here is that its an ODATA query so you aren't actually looking for the function Null.  Just use the keyword null without single quotes.  Like this

Completiondate eq null


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

Thanks that worked perfectly.  Can I just check on the other part about receiving emails for all items not complete on the list even if the reminder date hasn't passed?

You can add additional queries to the Odata filter.  Like this

(CompletionDate eq null) and (ReminderDate le '@{utcNow('yyyy-MM-dd')}')


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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,942)