web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power automate respons...
Power Apps
Unanswered

Power automate response from sql to power apps table

(1) ShareShare
ReportReport
Posted on by 16

Hi, 

 

I'm trying to bring data from a SQL stored proc into power apps- i started with a power automate flow that ends in a response action and the data has following format : 

shaidar_2-1720702794078.png

 

 

In power apps i added a button on on click : 

ClearCollect(temptable,stored_proc_to_data.Run(1))
(the stored proc takes company_id as a parameter and filters for it)
However in my collections my temptable looks like this with empty rows:
shaidar_3-1720702865862.png

 


I will eventually need to add many more columns i just reduced it to 4 to try and trouble shoot. I searched around and someone suggested to enable 'Explicit column selection' but that didnt help. 

 

I also tried making the input for the response actions 

body('Execute_stored_procedure_(V2)')?['resultsets']?['Table1']
but that gave this error in power apps
shaidar_4-1720702954495.png

 

 

Would appreciate any leads on a fix!

Thanks

S

 

 

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    Hi @shaidar Do this:

     

    1. Remove the response action from your flow.
    2. Save the Flow and test the flow manually.
    3. You will get the output from Store Procedure.
    4. Copy the output as it and then add Response action to your flow.
    5. Then click on Generate from Sample
    6. ANB_0-1720703708876.png
    7. Paste the exact output from SP to generate proper scheme.
    8. Basically, as per the error it is showing that you have created a scheme with just an array, however it is expecting object.
    9. Save the flow and refresh the flow in app and try again.

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB

     

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @shaidar 

     

    i think your topic would be a better fit for the power automate communit forum to be found here:

    Microsoft Power Automate Community - Power Platform Community

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • shaidar Profile Picture
    16 on at

    Thank you - but now its giving me this 

    shaidar_0-1720708596475.png

     

    how do i tell it to get whats in the body 

  • ANB Profile Picture
    7,223 Super User 2025 Season 2 on at

    @shaidar Please follow these:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Display-results-from-Flow-SQL-Stored-Procedure-in-my-PowerApp/td-p/366593

    https://www.microsoft.com/en-us/power-platform/blog/power-apps/return-an-array-from-flow-to-powerapps-response-method/

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard