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 / Issues with Get Items ...
Power Automate
Answered

Issues with Get Items (SharePoint List)

(0) ShareShare
ReportReport
Posted on by 8

Hi there! 

 

I am very new to flow and have been trying to build a OData filter to grab items once a day in a SharePoint list that have not been modified for 90 days and has a location of completed for deletion. Here is what I have built so far:

 

Location eq 'RV Cancelled' or Location eq 'RV Completed' or Location eq 'SL Cancelled' or Location eq 'SL Completed' and Modified lt datetime 'OUTPUT'

 

(OUTPUT is a variable (compose) using this expression:

adddays(utcnow(), -90)   )
 
I am sure I am just not understanding how the queries work. Any help would be greatly appreciated!
 
When I try to run the flow it failed (The expression is not valid. Creating query failed.)
Categories:
I have the same question (0)
  • Christopher S Profile Picture
    on at

    Hi @PowerTaco 

     

    I think the issue is that oData filtering only accepts one condition, you can try removing the conditions and only leaving one and check again to save the Flow, if the conditions work then this is a limitation of the oData filtering.

     

    Best Regards

    --

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions help users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @PowerTaco ,

     

    Please try to remove datetime and try again. Please note that we could use choice filed as a filter in Filter Query.

     

    Best Regards,

  • PowerTaco Profile Picture
    8 on at

    Worked! Thank you!! 😎

  • PowerTaco Profile Picture
    8 on at

    Thank you for your response! The filter accepted the multiple conditions (after I removed "datetime"), however I will keep this in mind for future testing. 😊

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