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

Flow Condition Not Working

I am using a Flow condition.  This is it below.

@greater(formatDateTime(utcNow(), 'MM/dd/yyyy'), formatDateTime(addDays(item()?['ShowDate'], +30), 'MM/dd/yyyy'))

The Flow runs but it always comes back greater than.

This is the Time Now > ShowDate + 30.  

For example,

Today (12-11-2018) > 10-1-2018 + 30.  That is right.

Today > 12-20-2018 + 30.  That is not greater than but it comes back greater than.

Is there something wrong with the equation?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Flow Condition Not Working

Hi @ccfisher,

 

I did a test on my side. If you use formatDateTime(), what you said will happen.

If you only compare dates, regardless of time, you could compare them directly without using formatDateTime(), and the results are correct.

3.PNG5.PNG4.PNG

Please take a try again.

 

Best Regards,

Barry

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.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Flow Condition Not Working

Hi @ccfisher,

 

I did a test on my side. If you use formatDateTime(), what you said will happen.

If you only compare dates, regardless of time, you could compare them directly without using formatDateTime(), and the results are correct.

3.PNG5.PNG4.PNG

Please take a try again.

 

Best Regards,

Barry

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.

View solution in original post

ccfisher
Level: Powered On

Re: Flow Condition Not Working

Thanks. That worked

ccfisher
Level: Powered On

Re: Flow Condition Not Working

Thanks.  That worked.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

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

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Kudoed Authors
Users online (4,506)