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 / [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:
I have the same question (0)
  • v-xida-msft Profile Picture
    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

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard