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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Failing to process res...
Power Apps
Answered

Failing to process response from custom SQL-query

(0) ShareShare
ReportReport
Posted on by 9

Hello experts,

 

I am new to PowerApp-Development. I have tried to build a flow which does the following:

1. Take parameters from app

2. Invoke SQL-Query to get some data (Only one integer called score)

3. Return data to PowerApp for further processing

 

The query is running, if I test the flow, data will be delivered from Database as requested:

Tim92_0-1658842742519.png

I now need to get it into my app for further processing, this is the part I can't figure out.

I tried to add response to the flow and tried to fetch the body from step above as stated in tutorial from Mr. Dang (https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/Type-and-Run-a-SQL-Query-inside-PowerApps/td-p/113062).

I also edited the correct JSON-schema:

Tim92_1-1658842971210.png

 

Unfortunately when I run it, answer will just contain the plain String I configured above:

 

Tim92_2-1658843115557.png

How do I configure this flow to output the JSON-data so that I can reuse it? It is displayed in testing already.

Thank you in advance!

 

 

Categories:
  • Verified answer
    Tim92 Profile Picture
    9 on at

    For anyone who may be struggling with this, I found the error:

    Text in response was wrong. To reference the body it will need the step name, blanks needs to be replaced by underscores!

     

    Step name is "SQL-Abfrage ausführen (V2)" so text in response step needs to be "body('SQL-Abfrage_ausführen_(V2)').ResultSets.Table1.

    It is also possible to rename the step to avoid such complicated names. Mine was generated by PowerApps.

    Detailed tutorial on this topic can be found here: https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard