cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

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

4 REPLIES 4
New Member

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?

 

Hi,

 

Has this issue been resolved yet?

 

 

Kind Regards,

Daniel

anyone get this to work?

Regular Visitor

Bump... 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (6,186)