Hello.
I'm trying out Flow a little deeper and have lots of questions (fun!).
Simple project:
So far:
Any ideas?
Thanks
I actually found an amazing fix.
I was able to take the function on this page:
https://www.red-gate.com/simple-talk/sql/t-sql-programming/consuming-json-strings-in-sql-server/
and create a query that pivoted my JSON into rows that were then returned to flow as an array.
Hi @Shegs. Just ran across a new @mr-dang video here. Check out the 14:00 mark. It appears he is using an Expression to dig a level deeper into the JSON.
Maybe it could help?
I can get it down to the displayed JSON where each user object is under "users" but users isn't an array so each user is an object. with some simple regex-find/replace I am able to format the JSON in a way that it works, but I am unable to see a suitable way to handle that in the flow without buying another subscription to another service...
I'll do some more digging.
Thanks
Good question. I haven't touched this one in a while and you know how that goes!
I think you're asking how to loop through the deeper levels of your JSON object and pull out the values, right?
I spent a few minutes looking through the Flow we came up with. Its different from yours, my objects are only one level deep.
Example:
{ "100": "https://assets-cdn.github.com/images/icons/emoji/unicode/1f4af.png?v8", "1234": "https://assets-cdn.github.com/images/icons/emoji/unicode/1f522.png?v8", "+1": "https://assets-cdn.github.com/images/icons/emoji/unicode/1f44d.png?v8", "-1": "https://assets-cdn.github.com/images/icons/emoji/unicode/1f44e.png?v8", "1st_place_medal": "https://assets-cdn.github.com/images/icons/emoji/unicode }
I'm just now sure! I exported my Flow and can email it to you if its of any use. Reaching out to @gamoraes here, he's solid in this area.
I've got one that could use some help if you've got this figured out.
I'm getting these JSON objects from an API call that I'd like to convert into an array of objects (Users).
I've tried replacing the "users" object brackets to square brackets but then it doesn't like the IDs and ":" before each array item. not sure how to replace those, as they can be any number and have any number of users returned.
I presume that after I get the string looking right, I can just pass that string into a parse JSON action and get an array I can loop through.
My buddy and I hacked together this solution before your more elegant reply. It works too!
Hi @seadude.
Cool that you have win! 🙂
Just for knowledge here is the solutions for you:
DONT FORGET TO CHANGE THE ACTIONS NAME, IN THIS CASE 'Aplicar_a_cada' to your apply to each action name and 'Http' to your http action name
substring(items('Aplicar_a_cada'),add(indexOf(items('Aplicar_a_cada'),':'),1),sub(length(items('Aplicar_a_cada')),add(indexOf(items('Aplicar_a_cada'),':'),1)))
split(replace(replace(replace(string(body('HTTP')),'{',''),'}',''),'"',''),',')
Aha! Notice though that the `Last` expression is actually cutting the `https:` off of the URL becuase of the " : ". Tricky. Do you have ideas how I can:
Thanks for your time!
Looks like I was missing the "_" between spaced words in the "Apply to each" title.
When I changed the First and Last formulas to contain 'Apply_to_each', the Flow was successful! I can click the right and left arrows to move through the results.
Awesome help @gamoraes. You have skills!
ankit_singhal
7
Super User 2025 Season 1
Michael E. Gernaey
4
Super User 2025 Season 1
David_MA
2
Super User 2025 Season 1