Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

 

 

 

  • ANB Profile Picture
    7,075 Super User 2025 Season 1 on at
    Re: Power automate response from sql to power apps table

    @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


  • shaidar Profile Picture
    16 on at
    Re: Power automate response from sql to power apps table

    Thank you - but now its giving me this 

    shaidar_0-1720708596475.png

     

    how do i tell it to get whats in the body 

  • mmbr1606 Profile Picture
    11,950 Super User 2025 Season 1 on at
    Re: Power automate response from sql to power apps table

    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

  • ANB Profile Picture
    7,075 Super User 2025 Season 1 on at
    Re: Power automate response from sql to power apps table

    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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,522 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,890 Most Valuable Professional

Leaderboard