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 / Invalid Filter Query -...
Power Automate
Unanswered

Invalid Filter Query - why?

(0) ShareShare
ReportReport
Posted on by 21
Hi,
 
I'm falling down at the first hurdle with a fairly simple PA linked to a sharepoint list. To start, all i want it to do is every Wednesday at 9am Get Items added to the list since the previous Wednesday. I've been trying to use a filter query to do this, but for
"Created ge addDays(utcNow(),-7)" and every variation I use it says "the expression is invalid".

See screenshots here. I've checked that Created is a valid column name in the back end. I've tried using ChatGPT and Google to find multiple variations of the query, I've also tried using the "Modified" date instead. I just can't figure out what I'm doing wrong here.
Categories:
PA_Help1.png
PA_Help2.png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
    Did you add the expression as plain text? Can you also add the single quotes around the date expression?
     
    If that is the case make sure you add it via the expression editor/fx button or use the below as a copy/paste:
    Created ge '@{addDays(utcNow(),-7)}'
  • SweatyLumpfish Profile Picture
    21 on at
    I had tried that formatting, and it also had returned as invalid. However, what I finally found that worked was swicthing back to the old designer and doing exactly the same thing, but using the 'advanced options' dropdowns which don't exist in the new builder.

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard