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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,638)