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

Community site session details

Session Id :
Power Automate - Building Flows
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

I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,484 on at
    Re: Help with Get Items Filter Query Expression

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard