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 / How to make SPO rest A...
Power Automate
Unanswered

How to make SPO rest API call with large number of filter conditions in flow?

(0) ShareShare
ReportReport
Posted on by

Hi folks,

 

I'm trying to build a flow to retrieve data from SPO list using rest API. A filter query is used which filters on the column employee email. There can be large number of filter conditions (based on data send from canvas app). The overall URI looks like below:

 

https://site.sharepoint.com/sites/sitename/_api/web/lists/getbytitle('listname')/items?$select=column1,column2&$filter=(EmployeeEmail eq useremail1 or EmployeeEmail eq useremail2 or EmployeeEmail eq useremail3 or EmployeeEmail eq useremail4...)

 

The problem with this is, sometimes the number of users are huge (like 70+) and I receive below error from power automate:

 

rbn_nue_0-1683872338938.png

 

Is there any other way to achieve this? I need to get list items specific to certain employees only as entire list is quite large. I've considered splitting API calls, but it will affect the performance of app.  Any suggestions? 

 

Thank you.

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Consider using the batch functions of the SPO API. 

  • rbn_nue Profile Picture
    on at

    Hi @lbendlin 

    Thank you for your suggestion. Do you have example of the syntax with multiple get calls. All I see get and other queries mixed together in batch. When I try multiple get calls it's not returning expected results or throws errors. Please share if you have an example.

     

    Thanks

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    Here's the documentation for batch calls.

     

    Make batch requests with the REST APIs | Microsoft Learn

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard