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 Apps / Stored procedures for ...
Power Apps
Answered

Stored procedures for loading more than 2000 records from SQL - Power Automate

(0) ShareShare
ReportReport
Posted on by 1,625

Hi,

 

I'm stuck with the following. I had issues with accessing my SQL data from PowerApps due to using non delegable functions. I have seen a workaround is to create a stored procs in SQL and then to use PowerAutomate to load the data into a collection, allowing me to use the collection with more than 2000+ records.

 

I have created a stored procs in SQL using

I go to PowerAutomate 

Create new flow from within PowerApps and the Flow tab

Select PowerApps as the trigger, give it a name

* Select action, Execute Stored Procedure (V2) - select server, DB and Procedure name

 

I add in a 'Response' action and in the body I select 'body' from the execute stored procedure (v2)

I click save and I run a manual test of the flow, copy the schema generated by the test and paste in 'generate from sample' save my flow and no errors

I add the flow to my app

I attempt to create a collection using the data flow will bring back but the collection is empty:

 

ClearCollect(ColSQLView, SQLView.Run()) 

 

I only have 2 additional options to add 'properties' and 'type', and when I navigate to my collection its empty with only 2 headings properties and type, I dont even know what these are... I was expecting my columns from SQL to be here

Categories:
I have the same question (0)
  • Verified answer
    Lefty Profile Picture
    1,625 on at

    I have resolved this

     

    When I looked at my JSON in PowerAutomate, it had extra parts at the start, which I removed and ensured all the items were sitting inside a ResultsSet and Table 

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 Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard