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 / Filter Query - Wont le...
Power Automate
Answered

Filter Query - Wont let me use and

(0) ShareShare
ReportReport
Posted on by

Hey All,

 

So filter query is no longer my best friend..For some reason its driving me made. I want to use it but keeps erroring. 

 

Heres what I have. 

 

CompletedDate ge addDays(utcNow(),-10,'yyyy-MM-dd') and 3MonthCheck eq true
 
Getting the following error
{"odata.error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"The expression \"CompletedDate ge '2022-03-04' and 3MonthCheck eq true\" is not valid."}}}
 
I tried adding a condition rather than adding it in the filter query..It works but rather then sending me one email with a table of all the data that meets the conditions I get 1 email for each match and the table as well. 
 
gardnerlhwrc_0-1647266379133.png

 

Where am I going wrong. 

 

Thanks L

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Ok just checking a couple of things. I double checked and saw my column name was incorrect so i've change that and the error is different. 

     

    CompletedDate ge '@{addDays(utcNow(),-10,'yyyy-MM-dd')}' and _x0033_MonthCheck_x003f_ eq true

     

    Column '_x0033_MonthCheck_x003f_' does not exist. It may have been deleted by another user.

    gardnerlhwrc_0-1647267743333.png

     

  • KvB1 Profile Picture
    1,596 on at

    In the output of the fetch items action it should say the exact phrasing of the column, as automate sees it

     

    Also, if you dont need to create an action for the condition if it fails, you can add this in a filter or maybe even http request if you feel like doing that (would make it more flexible)

  • Community Power Platform Member Profile Picture
    on at

    Thanks for your quick reply. I've checked the output but i must admit not totally sure what i'm looking for everything looks to be right. 

    "$filter""CompletedDate ge '2022-03-04' and _x0033_MonthCheck_x003f_ eq true"
     
    I see this from the output download.
    "status":400,"message":"Column '_x0033_MonthCheck_x003f_' does not exist. It may have been deleted by another user
  • KvB1 Profile Picture
    1,596 on at

    If you just use the odata filter without the month check: CompletedDate ge '@{addDays(utcNow(),-10,'yyyy-MM-dd')}'

     

    You should get returns since this part of the filter seems to work fine. In the output, it will show the name of the column in the way its recognized by PA

  • Community Power Platform Member Profile Picture
    on at

    gardnerlhwrc_0-1647269011268.png

     

     

    body":{"status":400,"message":"Column '_x0033_MonthCheck_x003f_' does not exist. It may have been deleted by another user
            "$filter""_x0033_MonthCheck_x003f_ eq true"
    So just messing about, doing my own testing. If I create a new column that doesn't have some dodgy reference it works
    Example - I made a threeMonthCheck column and replace the filter and it all is well. 
    I'll have to make some changes to my add to see the new column (which is fine but still be good to know why it doesn't work)

     

  • Verified answer
    KvB1 Profile Picture
    1,596 on at

    The name of the column as you see it in sharepoint isn't always how its seen by PA. You need the name as PA sees it. To figure that out you run the fetch items from sharepoint block without the filter thats giving you problems, so you can see what it fetches, and what the columns, and other things you might want to use as a filter criteria, are called.

  • Community Power Platform Member Profile Picture
    on at

    I understand what you're saying now. Thank you very much that worked...It was looking for this

     

    OData__x0033_MonthCheck_x003f_ 

     Changed that and boom!

     

    Amazing thanks for you patience. 

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard