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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help with Get Items Fi...
Power Automate
Unanswered

Help with Get Items Filter Query Expression

(0) ShareShare
ReportReport
Posted on by 112

I have a SharePoint list of Contracts that have an Expiration Date column on them. 

 

The Expiration Date is formatted as this:  11/10/2022. 

 

In a flow I would like to use the SharePoint "Get Items" action to filter by only Contracts that have an Expiration Date of 30 days or less from the current date.   Could I get some help on what the filter query syntax would be for this type of expression?

 

The idea is I ultimately want to have this flow scheduled to run every day and email me a list of Contracts that are 30 days or less from today from expiration. 

 

Thank you

Categories:
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @greddin 

     

    You can use the addDays function here.

     

    So your filter query should look something like this:

     

    ExpirationDate ge addDays(utcNow(),-30,'Format of your choice('MM-dd-yyyy'))

     

    Not sure exactly this will work, but you can try similar things. Changing the ge to le, and -30 to 30.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard