cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
kos
Level: Powered On

SQL on-prem SELECT query in Flow

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

1 ACCEPTED SOLUTION

Accepted Solutions
v-zhos-msft
Level 10

Re: SQL on-prem SELECT query in Flow

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.

View solution in original post

2 REPLIES 2
kos
Level: Powered On

Re: SQL on-prem SELECT query in Flow

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

 

 

 

 

v-zhos-msft
Level 10

Re: SQL on-prem SELECT query in Flow

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.

View solution in original post

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,367)