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
Community Champion
Community Champion

@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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,752)