web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Items - Filter Que...
Power Automate
Unanswered

Get Items - Filter Query - Date 90 Days Past

(0) ShareShare
ReportReport
Posted on by 86
I need to be able to send an email to the Created By user after a Date Hired field comes to 90 days past.  
 
For example, if the SP list item's Date Hired value is utcNow() - 90 days then send email to the Created By. 
 
Let's say the Date Hired value is 12/26/2024 and today's date is 03/26/2025.  Since today's date minus 90 days is equal to the Date Hired 12/26/2024 I'd like to send an email.
 
Date Hired 12/26/2024 = 03/26/2025 - 90 days send the email. 
 
Is there a way I could use the Get Items / Filter Query to determine the items where the Date Hired value is equal to Today's date - 90 days?
 
Thank you!
Categories:
I have the same question (0)
  • Verified answer
    David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at
    You can do the following:
    1. Create a scheduled flow that runs at the time of the day you want the e-mail to be sent.
    2. Use a get items action with a filter query to only get the items created 90 days ago.
    3. Add a condition to see if any items were found.
    4. Then use an apply to each action to process each item returned and send the e-mail.
    The flow will look like this except the trigger will be a scheduled action:
    The filter query in the get items action is configured as such:
    The two expressions used are:
    • ge (greater to or equal): addDays(startOfDay(utcNow()), -90)
    • lt (less than): addDays(startOfDay(utcNow()), -89)
    • This would be the entire expression: Created ge '@{addDays(startOfDay(utcNow()), -90)}' and Created lt '@{addDays(startOfDay(utcNow()), -89)}'
    The condition is configured as:
    • The expression on the left is: length(outputs('Get_items')?['body/value'])
  • greddin1 Profile Picture
    86 on at
    Thank you for the help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard