cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

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

Re: Flow Condition Not Working

Hi @Anonymous,

 

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

Re: Flow Condition Not Working

Hi @Anonymous,

 

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

Highlighted
Anonymous
Not applicable

Re: Flow Condition Not Working

Thanks. That worked

Highlighted
Anonymous
Not applicable

Re: Flow Condition Not Working

Thanks.  That worked.

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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 (10,773)