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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / REST api Filter fail t...
Power Automate
Unanswered

REST api Filter fail that doesn't make sense.

(0) ShareShare
ReportReport
Posted on by 21

This is probably more for the StackExchange bin, but I'll fire it here and see what happens.

 

I have a filter that fails when it's like this:

     ?$filter=SiteId eq 50 and Year_x002d_MonthId eq 92

 

but not this:

     ?$filter=Year_x002d_MonthId eq 92 and SiteId eq 50

 

It complains that the first one causes the possibility of a large list issue of too many items returned, but the second one doesn't, despite the identical syntax, just switched.

 

Site(Id) is a lookup column to a Sites (locations in the world) list with 100 items.

YearMonth(Id) is a lookup column to a YearMonth list with 400 items. (Every year and month combo for a decade.)

 

This same filter is used for multiple list, MetricA, MetricB, MetricC, which all have the requirement to record a Site & YearMonth. What would be the cause of needing to swap the location of the filter parameters to make this work, for only one of the lists, and not all three?

 

----

I don't have the ability to mark anything as answered, as my browser always blocks it. So, tell me how to fix that, and I'll mark that as an answer, too.

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#2
Henil Profile Picture

Henil 128

#3
anirudhev Profile Picture

anirudhev 124

Last 30 days Overall leaderboard