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 / Return json to powerap...
Power Apps
Answered

Return json to powerapps from flow

(1) ShareShare
ReportReport
Posted on by 102

Hi,

I am having trouble return a JSON from flow back to Powerapps.

My flow is sending the following data back to Powerapps:

xecho_0-1662558217574.png

However, when I use the following in Powerapps:

 

ClearCollect(myEmailList, GetPowerappUsers.Run());

 

I get only one record with Value of true, rather than a collection with the email addresses.

 

What am I missing?

 

Thanks,

Bart

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @xecho 

    You are missing a function that will parse json back into a table.  Unfortunately, there is no such function!  

    In other words, you cannot do what you are looking to do that easily.

    In order to convert the JSON back to a table of records, you will need to parse the JSON text yourself in the app.

     

    I hope this is helpful for you.

  • xecho Profile Picture
    102 on at

    Hi Randy,

     

    Thanks for the answer. But the response to Powerapps is also not a string value when I try to get it with:

    Set(myJSONString, GetPowerappUsers.Run());

     

    Thanks,

    Bart

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @xecho 

    Bart,

    I notice that you have a "Response" step in your flow.  This IS actually a way to return a table to PowerApps.  However, you need to make sure you have a valid table returned in it.

    AND...keep in mind that the Response action is a Premium action.  ALL of your App users will need a Premium license to use your app.

     

    I didn't notice that initially in your post as most people opt NOT to use that action because of the premium costs.

     

    SO...with that in mind, if you are good with the premium licenses, then yes, what you are trying to do should work. 

    If you are not good with the premium licenses costs, then you will want to return your table as JSON and then parse it in your app.

     

  • xecho Profile Picture
    102 on at

    Hi Randy,

     

    I will change to parsing the JSON within Powerapps then :-).

     

    Would have been nice to do it directly in the flow.

     

    Thanks!

    Bart

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @xecho 

    Well...you can, but at a cost!!

    And the way licensing works, if you have a flow that you app calls which includes premium licenses, then your app requires it too.

    From the looks of what you are returning from the flow in your initial picture, it should be pretty easy to parse that in the app.

     

    Good luck on it and feel free to throw out questions if you run into problems.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard