Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
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:

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399

Featured topics