cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Prachi_2911
Microsoft
Microsoft

Fetching data from Result set on the execution of Stored procedure

I can execute a stored procedure using Logic Flows but how can I fetch the data from the result set, cause just executing the SP and not getting any data will not make any sense.

7 REPLIES 7
v-yamao-msft
Community Support
Community Support

Hi Prachi,


What kind of data do you want to get when you execute stored procedure? How do you want to get the data?

 

Followed by “Execute stored procedure”, you could add other actions such as “Create file” with Dropbox, “Send an email” with Office 365 Outlook, etc. So please try to create flows followed by other actions to fetch the data you want.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I am passing some parameters from PowerApps then executing the SP the result set that is returned from the SP that I need to display in my app.

I had the same issue, go see my solution at the link below. 

 

https://powerusers.microsoft.com/t5/Building-Flows/Unable-to-utilize-ResultSets-value-with-Condition...

 

 

1.call from the flow your SP.

2. then where you want to return the parameter put: body('yourSPName')?['ResultSets']?['Table1']?[0]?['YourColumnNameReturned']

Don't seem to be able to make this work

 

Here is the call to the SP

spsetup.PNG

 

Here is the step which uses the result of the SQL call

 emailsetup.PNG

Here is the output from the SP

spresut.PNG

 

Here is what the email looks like

 

emailout.PNG

 

Can't see what I am doing wrong.  Anybody spot it?

So I had this same issue and the fix is somewhat odd.  The formula is probably correct but it seems you have to enter it into the Expression box.  So expand the Add Dynamic Content pane, select the Expression tab, and then copy and paste your body() tag into that text box.  Then click Ok.  You will note that it creates a tag of the expression you entered and now it will actually get processed correctly.  It appears you can't just type in the path without going throught the Expression tab.

Anonymous
Not applicable

Thank you SOOO much wjhepworth.  I had been banging my head against a wall for hours.  🙂

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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