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 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:
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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard