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.

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.

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 155 members 4,115 guests
Please welcome our newest community members: