Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • PS-28031948-0 Profile Picture
    4 on at
    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 at
    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 at
    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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,547 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow