Good day everyone,
I parsed JSON Array with result as below :
=====================================
=====================================
Solved! Go to Solution.
I got the answer of my question above.
just need to give response body JSON schema into my Response and add body from parse output :
after that I can get all of the values in PA :
from my collection
into my dropdown button
Thanks everyone 🙂
@Anonymous
Hi there! Interesting issue, I wonder if the Response needs to be in an Apply to Each loop since your JSON is an array, right?
What does the rest of the Flow look like?
-Ed-
If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
Hi @edgonzales ,
here is my flow :
I already tried using apply for each but the result only got 1 object from that array since I need to retrieve all items into powerapps.
note : response is forbidden to put in Apply to Each
Right (on the note), I was thinking about appending the lines to an array inside the loop and then presenting that in the response outside of the loop...but, I'm wondering if I'd be parsing the JSON just to put it back together again in the array. Did we already consider putting the unparsed output JSON in the response already? Or are you adding data to it before sending it back to PA?
the only way I think is to take all the objects that are in the array and then insert them into the new object variable so that the response will recognize all the properties that are in the new object, but until now I still haven't managed to do that. This flow will run when the user from the powerapps application sends the data needed to hit the API and when the API sends a response, it will be returned back to poweapps.
I got the answer of my question above.
just need to give response body JSON schema into my Response and add body from parse output :
after that I can get all of the values in PA :
from my collection
into my dropdown button
Thanks everyone 🙂
User | Count |
---|---|
89 | |
40 | |
22 | |
20 | |
16 |
User | Count |
---|---|
136 | |
54 | |
47 | |
36 | |
25 |