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

Prior date range expression help

Hi all,

 

I've created a workflow that performs a daily scan/ check of a SP List, specifically the column containing expiration dates. Each day the workflow checks the dates and if it matches the current date, a workflow triggers for that line item using this expression:

 

formatDateTime(utcnow(), 'yyyy-MM-dd')

 

I've got an issue with some users entering dates in the past (which still need actioning) and was wondering if I can get help with modifying my expression to have my workflow check the current date and all dates prior. I've got a second condition along with this to ensure it doesn't trigger on previous dates that have been actioned.

 

condition.PNG

 

TIA

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Prior date range expression help

Hi

Have you tried the following?

'End date' is lower or equal (lessOrEquals) than 'formatDateTime(utcnow(), 'yyyy-MM-dd')'

AND

'License' is not equal to 'Inactive'

 

'Less or equals' can be selected from the Condition Editor's combo

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

Re: Prior date range expression help

Hi

Have you tried the following?

'End date' is lower or equal (lessOrEquals) than 'formatDateTime(utcnow(), 'yyyy-MM-dd')'

AND

'License' is not equal to 'Inactive'

 

'Less or equals' can be selected from the Condition Editor's combo

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Highlighted
Community Support
Community Support

Re: Prior date range expression help

 

Hi @Unity ,

 

Do you have any issues now?

Please tell us more details about the issue you encountered.

When configuring the Condition, I recommend first determining whether the End Date is empty. You could configure the second condition in the first order.

Also, you need to make sure the format of the End Date is "yyyy-MM-dd".

 

Best Regards,

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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (5,368)