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 / [object Object] - JSON
Power Apps
Answered

[object Object] - JSON

(0) ShareShare
ReportReport
Posted on by 795

Creating a collection from an SQL stored procedure using flow.

Fields that are of type decimal are not being processed correctly by powerapps.

In the flow response payload they are set as type: string and looking at the output results they are displayed correctly in the JSON repsonse.

Within powerapps:

In any form / data table / text box the field is represented by [object Object] and when viewing the collection from the menu it shows as blank.

As soon as the populated field is selected it crashes powerapps (in browser).

 

Is this a bug or am i missing something here?

I have tried to put into a new collection to see if the issue was with the current collection however it makes no difference.

Categories:
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Delid4ve ,

    Do you want to return a table value from your flow back to your app?

     

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Within your app, please check if the collection populated with proper records returned from your flow.

     

    More details about returning table value from a flow back to an app, please check my response within the following thread:

    https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/How-to-display-the-result-of-SQL-Server-on-prem-stored-procedure/m-p/195379

    https://powerusers.microsoft.com/t5/Building-Power-Apps-Formerly/Read-Excel-Stored-in-SharePoint/m-p/327925

     

    Please also check and see if the following blog and video could help in your scenario:

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

    https://www.youtube.com/watch?v=K_H5r0nzwy4

     

    Please make sure you have specified proper JSON Schame value within the "Response Body JSON scema" field of the "Response" action in your flow.

    Note: The JSON Schema value is based on the result the "Execute stored procedure" action returned in your flow.

     

    Best regards,

  • Verified answer
    Delid4ve Profile Picture
    795 on at

    All other fields populated correctly.

    I have tested:

    Removed and readded flow - didnt fix

    Changed json to type:number - didnt fix

     

    I have, as a workaround, cast my decimal to nvarchar(max) in my stored procedure and changed the type to string.

    This works ok but there does seem to be some form of bug there for decimals

     

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 239

Last 30 days Overall leaderboard