cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Condition: Custom Column Date is Less than " ? "

Hello,

 

I have a condition I set up that used to be: Modified - is less than - addDays(utcNow(),-180)

This was readying the modified column on sharepoint where it should say "6 days ago" for example.

I added a new custom column on sharepoint and called it Revised Date and I have a manually entered date for each item on the list in the format for example of 11/1/2019.

 

There for I change the Condition to be: Last Revised - is less than - ????

 

I am having trouble figuring out what function to replace it with that would make it so that if a item has been revised over 160 days ago it would consider it a YES.

Capture8.PNG

Let me know if you have any questions!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User
Super User

Re: Condition: Custom Column Date is Less than " ? "

Hi @kpiana 

 

Try to format using formatDateTime(addDays(utcNow(),-180),'yyyy-MM-dd') on both ends of the IF condition.

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

Highlighted
Community Support
Community Support

Re: Condition: Custom Column Date is Less than " ? "

 

Hi @kpiana ,

 

In fact, if it is used to compare time, you can ignore the date format, in other words, you can still use the expression you used before.

 

If you want the current date to be formatted in the same format as Last Revised, then you can also consider using the following expression:

addDays(utcNow(),-160,'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.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Condition: Custom Column Date is Less than " ? "

Hi @kpiana 

 

Try to format using formatDateTime(addDays(utcNow(),-180),'yyyy-MM-dd') on both ends of the IF condition.

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

Highlighted
Community Support
Community Support

Re: Condition: Custom Column Date is Less than " ? "

 

Hi @kpiana ,

 

In fact, if it is used to compare time, you can ignore the date format, in other words, you can still use the expression you used before.

 

If you want the current date to be formatted in the same format as Last Revised, then you can also consider using the following expression:

addDays(utcNow(),-160,'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.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new 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!

Users online (10,286)