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 / Using OData filter que...
Power Automate
Answered

Using OData filter query with List all items present in table Fin & Ops action

(0) ShareShare
ReportReport
Posted on by 6

Hi all.

 

I’m using the ‘List item present in table’ Fin & Ops action. The problem is I’m receiving a huge number of records so its taking an extremely long time to run. I’m trying to construct a filter query but not sure how to get it to achieve what I want.

 

I want to filter records based on ID. My flow takes a list of IDs and I only want to return the records that have a matching ID to those provided to the flow, not all the records in the table.

 

Through experimenting I’ve come up with the following query:

ID eq 'DFS33G' or ID eq ‘GDFG3’ 

 

Does anyone know how I can make this query dynamic? So it works for any combination of IDs I might provide for the flow?

 

Thank you for your help

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Alex1171 ,

    Initialize a String variable.

    Loop it for all IDs to construct the Query and pass it to the oData filter?

    SudeepGhatakNZ_3-1706148037891.png

    SudeepGhatakNZ_4-1706148094141.png

    Compose Expression: 

    substring(variables('Query'),0,lastIndexOf(variables('Query'),'or'))

     

    SudeepGhatakNZ_2-1706148011482.png

     

    SudeepGhatakNZ_1-1706147419350.png

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 471

#2
11manish Profile Picture

11manish 246

#3
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

Last 30 days Overall leaderboard