Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 72oWb8UfyrVbBTAprnN1Ea
Power Automate - Using Flows
Answered

SQL Server - Stored Procedure - Parameters list

Like (0) ShareShare
ReportReport
Posted on 30 Sep 2020 16:55:32 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

  • PS-28031948-0 Profile Picture
    4 on 28 Mar 2025 at 20:56:41
    SQL Server - Stored Procedure - Parameters list
     
    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?
  • Verified answer
    MsKautha Profile Picture
    42 on 06 Oct 2020 at 16:16:06
    Re: SQL Server - Stored Procedure - Parameters list

    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.

  • MsKautha Profile Picture
    42 on 30 Sep 2020 at 17:04:05
    Re: SQL Server - Stored Procedure - Parameters list

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,636 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow
Loading started
Loading complete