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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / In SQL Server get rows...
Power Automate
Unanswered

In SQL Server get rows - how do I do an IN statement

(0) ShareShare
ReportReport
Posted on by 581

I've got a SQL Server get rows action.

 

I have a string of numbers in a variable called myNumbers (it looks vaguely like, 3,4,88,99,22,12)

 

I've put into the filter section of my get rows id in (myNumbers)

 

I'm getting an error after in - is this someone I can do in Power Automate?

Categories:
I have the same question (0)
  • Pablo Roldan Profile Picture
    316 on at

    AFIAK there is no IN function yet implemented 😞 , you're having that error because Filter Query uses Odata Expression

     

    a workaround could be an expression like this (could use a compose or direct in filter query)

     

    ([COLUMN] eq @{replace(outputs([YOUR COMPOSE/VARIABLE THAT HOLDS NUMBERS]),',',' or [COLUMN] eq ')})

     

    e.g (userId eq @{replace(outputs('numbers'),',',' or userId eq ')})

    in runtime the result will be 

    (userId eq 3 or userId eq 4 or userId eq 88 or userId eq 99 or userId eq 22 or userId eq 12)

     

    PabloRoldan_0-1711392259645.png

    I know kind of overwhelm for something that simple 😕 

     

    regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard