cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sudosaurus
Post Prodigy
Post Prodigy

Get items 7 days after created date

Hello,

 

In my "Get items" step below I have a filter query for FormStatus eq 'Pending' - I also need to filter by items that are older than X number of days.

Essentially we want to send a reminder to users to fill out a form every week if the Form Status is equal to Pending.

 

But what we dont want to do is send a reminder email to someone who's only been pending for 1 day.

 

Could someone help me with the logic to acheieve this?

 

Thanks

 

sudosaurus_0-1649863386438.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @sudosaurus,

 

Try a filter query like below:

(FormStatus eq 'Pending') and (Created le '@{addDays(utcNow(), -7)}')

 

This should give you all the items with a Pending status which have been created before the 6th of April (today-7).

 

 

View solution in original post

1 REPLY 1
Expiscornovus
Super User
Super User

Hi @sudosaurus,

 

Try a filter query like below:

(FormStatus eq 'Pending') and (Created le '@{addDays(utcNow(), -7)}')

 

This should give you all the items with a Pending status which have been created before the 6th of April (today-7).

 

 

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,543)