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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard