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 / SQL on-prem SELECT que...
Power Automate
Unanswered

SQL on-prem SELECT query in Flow

(0) ShareShare
ReportReport
Posted on by 13

Hello,

 

how can I create a SQL query like this one in flow:

 

SELECT [Name] ,[Address] ,[City] ,[E-Mail]
FROM [dbo].[Customer]
WHERE [No_] = '12345678'

 

I suppose I can use only Get Rows action because I have SQL on-prem. But how I can convert my SQL query to the flow?

 

Here is my flow:

 

1.jpg

Categories:
I have the same question (0)
  • koss Profile Picture
    13 on at

    Tried using this expression but receive an error:

     

    {
     "status": 400,
     "message": "Term 'No_ eq 'C0000007'' is not valid in a $select or $expand expression.\r\n inner exception: Term 'No_ eq 'C0000007'' is not valid in a $select or $expand expression.\r\nclientRequestId: d2420ae7-08b0-4e93-a7ea-ee615f3b07b5",
     "source": "sql-ncus.azconn-ncus.p.azurewebsites.net"
    }

     

    2.jpg

     

     

     

     

  • Verified answer
    v-zhos-msft Profile Picture
    on at

    Hi @kos ,

    What's the data type of [No_]?

    I have made a flow for your scenario, please check it for a reference.

    If the data type of [No_] is int, you don't need to add '' with the dynaamic content.

    Capture2.PNG

    If the data type of [No_] is nchar, you need to add '' with the dynaamic content.

    Capture3.PNG

    Best Regards,

    Community Support Team _ Zhongys

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard