cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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
Highlighted
Helper II
Helper II

Re: SQL stored procedure return value

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
Highlighted
Helper II
Helper II

Re: SQL stored procedure return value

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

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (8,430)