web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SQL Server - Stored Pr...
Power Automate
Answered

SQL Server - Stored Procedure - Parameters list

(0) ShareShare
ReportReport
Posted on by 42

Hello again,

I'll get straight to the point without pleasantries. 

I am trying to execute a SQL Server stored procedure from a flow. The procedure cannot be selected directly from the dropdown because there are 50+ procedures and which one to be run depends on a condition. So I used a variable for procedure name.

There is only one parameter that I need to pass regardless of the procedure name. I tried using a variable but ran into an error. The screenshots of the error message and my flow are below. Please take a look and let me know if the format in which I am passing the parameter is wrong.

2020-09-30_11-47-06.png

 

2020-09-30_11-49-37.png

 

Thank you,

Chandrika Kautha

Categories:
I have the same question (0)
  • MsKautha Profile Picture
    42 on at

    Can this topic be moved to "Building flows"? I wrongly selected "Using Flows".

  • Verified answer
    MsKautha Profile Picture
    42 on at

    You can pass the parameters list in a json format:

    {"<Parameter Name>":"<Value>"}

    First compose the parameterslist using data operation and then use it in Execute SQL proc action.

  • PS-28031948-0 Profile Picture
    4 on at
     
    Hi Chandrika,
    I have the same scenario. I am trying to parameterize the DBName, Server Names.
    Is the parameters list working? When I try to pass the parameter list using JSON Format like below, it executes successfully,
    but the parameter values are not passed/set to input parameters of SP. It just shows NULL. 
     
    [{"in_ReportName": "DMI RCC Report"}, {"in_Subsc_Type": "Email"}, {"in_Status": "Started"}]
     
    If the issue is resolved, can you please comment on how its resolved?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 607

#2
Valantis Profile Picture

Valantis 456

#3
11manish Profile Picture

11manish 352

Last 30 days Overall leaderboard