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

Execute SQL Query with Parameters

I'm trying to execute a query and return results to PA.  I can't get the query to run successfully with a parameter...although I can hardcode the parameter and the query works fine.  It picks up the parameter input but never returns a ResultSet.

Declare @UnitNumber int
SELECT AVG(SOSTotalTime) AS AverageSOS, DayPart 
FROM dbo.vw_SOSbyOrder 
Where UnitNumber=@UnitNumber
GROUP BY DayPart

Capture.PNG

2 REPLIES 2
bpremji
Level: Power Up

Re: Execute SQL Query with Parameters

I am trying to something similar and followed this video:

 

https://powerusers.microsoft.com/t5/Community-Video-Gallery/Friday-Functions-Series-SQL-Declare-Form...

 

2 minutes and 20 seconds into the video, he saves the flow and refreshes the page, which makes the variable appear. 

 

I cannot get this to appear, which I think maybe the issue we are both facing.  

 

Has anyone else faced this issue?

 

dhamacher
Level: Power Up

Re: Execute SQL Query with Parameters

Hi,

 

Has this issue been resolved yet?

 

 

Kind Regards,

Daniel

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

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!

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!

Users Online
Currently online: 318 members 4,360 guests
Please welcome our newest community members: