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 / Filter SQL table with ...
Power Automate
Unanswered

Filter SQL table with odata by a list of comma-seperated unique ids inside an SQL Get Rows Action Filter Query

(0) ShareShare
ReportReport
Posted on by 2

Hi,

I am trying to build a flow where I am passing list of unique ids in comma separated string.
I want to use this list to read the user's information from SQL, but I am not good with odata query filters, I am getting an error when I test the flow.

Can anyone suggest a solution?  - how to filter with list of ID's and get information of those ID's

 

Example :

Filter Query : ColumnName in ( 67, 68, 72)

 

Thanks!!

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

    That should work. Please show what you have done so far.

  • hemajm Profile Picture
    2 on at

    I am facing this issue with the filter query can you help me with right one.

    hemajm_1-1693547443200.png

     

    hemajm_0-1693547410518.png

     

    Thanks!!

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

    It is not clear what position 9 is - can you please clarify?

     

    May need extra escaping of the single quotes.

  • hemajm Profile Picture
    2 on at

    Thanks for the response!!😊

     

    Here my column name is CTR_ID and I am passing list of unique ids in comma separated string to SQL to get the rows of those ID's

     

    The Query I am passing is CTR_ID in ('000001994','000000932')

     

    hemajm_0-1693576929850.png

    can you suggest me with right query.

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

    I did some tests, and guess what - the IN operator is not supported in that filter query. HOWEVER (!!!) the OR operator is supported (even though it should not be!)

    Try this one 

     

    CTR_ID eq '000001994' or CTR_ID eq '000000932'

  • hemajm Profile Picture
    2 on at

    Thank You !! @lbendlin 

     

  • 55552 Profile Picture
    682 on at

    what if your list of items to filter by was variable each time the flow ran? Any way to handle that? I may have a list like "A", "B", "D", "F". Can I use some sort of concatenate function with a compose statement prior to the Get Rows action to convert that to MyColumnName eq 'A' or MyColumnName eq "B", etc.?

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 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard