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

Calculate the number of days between today and created

Hi,

 

I need help, please.

 

I need to run a daily workflow to get files that met the following conditions: Status is pending AND was created 2 days ago or more.

I was able to complete the status part but I couldn't figure out the date part. I tried to use the ticks function and I failed.

 

Thanks in advance. 

1 ACCEPTED SOLUTION

Accepted Solutions
Diksha
Resolver IV
Resolver IV

Hello @efebo ,

 

You can use the following filter query - 

 

Status eq 'Pending' AND Created le '@{formatDateTime(addDays(utcNow(), -2), 'yyyy-MM-dd')}'

 

 

Try this out !!!

 

If this answered your question, please mark this question as answered and if you liked my response, please consider giving it a thumbs up .

Thank You !!!

 

View solution in original post

3 REPLIES 3
PrasadAthalye
Super User
Super User

@efebo - You can add a calculated field in SharePoint list with formula as Today()-Created. Then Use that field in the flow.

 

Like and Mark this as answer if this resolves your issue.

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community
Diksha
Resolver IV
Resolver IV

Hello @efebo ,

 

You can use the following filter query - 

 

Status eq 'Pending' AND Created le '@{formatDateTime(addDays(utcNow(), -2), 'yyyy-MM-dd')}'

 

 

Try this out !!!

 

If this answered your question, please mark this question as answered and if you liked my response, please consider giving it a thumbs up .

Thank You !!!

 

Thanks, both for answering. 

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (3,247)