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 / Sending list/array/jso...
Power Automate
Unanswered

Sending list/array/json to a store procedure from Power Automate

(0) ShareShare
ReportReport
Posted on by 58

I have to insert rows from csv document into database table, previously doing some validation. Anyhow the flow is running around 40 minutes for 200/300 rows and it is really slow. So we decided to create a store procedure and send all rows as a list or array and do the logic inside it. 

But I cannot find a way to send a list/array/json from Power automate as an input parameter to the store procedure.

Usually I am getting this mistake: "Database functions with non-scalar parameters aren't supported.
inner exception: Database functions with non-scalar parameters aren't supported."

 

For example here is the store procedure:

ALTER PROCEDURE [dbo].[spInsertEmployees]
@EmployeeData NVARCHAR(MAX)
AS
BEGIN
-- Process the JSON data here
INSERT INTO [dbo].[Employees2] (Id, FullName, Gender)
SELECT Id, FullName, Gender
FROM OPENJSON(@EmployeeData)
WITH (
Id INT,
FullName NVARCHAR(50),
Gender NVARCHAR(50)
)
END

 

And here is the json I am sending as a parameter from Power Automate: 

[
  {
    "Id": 2,
    "FullName": "John Doe",
    "Gender": "Male"
  },
  {
    "Id": 3,
    "FullName": "Jane Smith",
    "Gender": "Female"
  }
]

Any idea/suggestion how to do this, or some workaround? Also I tried to create a store procedure with input parameter as Table value and created a new type for it, but I still have the same mistake from Power Automate.

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 430

#2
11manish Profile Picture

11manish 341 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 282

Last 30 days Overall leaderboard