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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,838)