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 stored procedure r...
Power Apps
Answered

SQL stored procedure return value

(0) ShareShare
ReportReport
Posted on by 115

Hi everyone

 

I have an SQL stored procedure that returns a value. What I get in powerapps when I call the procedure using Flow is a table with one column that has the return value I need.  

 

Is there a way for the return table to be returned as a value that I could directly assign to a variable inside PowerApps?

 

Your help is appreciated as always. 🙂

 

Cheers!

Categories:
I have the same question (0)
  • Verified answer
    JomarGF Profile Picture
    115 on at

    Just sharing solution 

     

    //Stores the table in a collection

    ClearCollect(collAssetIDCount,getTop1AssetID.Run());

     

    //Assigns the value to a variable (AssetIDCount)

    Set(AssetIDCount,First(collAssetIDCount).Column1)

     

    I wish I could directly fetch a value to assign to a variable but this worked. 🙂

     

    Cheers!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 392

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 271 Super User 2026 Season 1

Last 30 days Overall leaderboard