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 / SQL Server stored proc...
Power Apps
Unanswered

SQL Server stored procedures (Upcoming features)

(0) ShareShare
ReportReport
Posted on by 3

Hey all,

 

Some strange behaviour when using the preview connection.

Within the procedure I'm invoking an external rest endpoint using the sys.sp_invoke_external_rest_endpoint, which returns a JSON string, within SQL I then parse that into a table and return the result. The only way I can get it to work is to modify the proc:

Alter Procedure dbo.myHeadache 
 @url nvarchar(max)
 @query nvarchar(max)
AS
Begin

Select 
 'hello' as fieldName
 -- add other required fields

-- Replace the select statement with the sys.sp_invoke_external_rest_endpoint
-- After importing into PowerApps

End

After the first load in PowerApps I can then implement the external rest call by reverting the procedure. I've also tried:

  • modifying the procedure to use a flag to switch the return results from the sudo table to the parsed json table
  • calling the procedure from another procedure

I hope this saves someone some pain.

Categories:
I have the same question (0)

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
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 617

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard