cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JomarGF
Helper III
Helper III

SQL stored procedure return value

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!

1 ACCEPTED SOLUTION

Accepted Solutions
JomarGF
Helper III
Helper III

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!

View solution in original post

1 REPLY 1
JomarGF
Helper III
Helper III

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!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,873)