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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard