I do not think this is a you guys bug, but a me bug lol. Mods feel free to move it =)
I saw in a few tutorials about storing the full response JSON in a single variable. and like those, mine was going to be used to iterate through it via the code block. all single variables seem to store fine (response.0.fieldname) but set a variable to just “response” does not seem to work. I have tested it and watched the variables, I even paused in the flow I was in to make sure it was not getting overwritten somewhere else.
The only thing I can think is because it is in a flow, it is having an issue with the scope, but I am not even leaving the flow block when testing.
It is a custom api I am calling, and the data looks good. Here is what I pull in from the api as it shows in API block on VF. I have no issue at getting at the response.0.question or any other item. But when I try just response or just response.0.answers to get the nested arry. Any help would be appreciated. I can always hit the Rest and get an answer, but I would rather pull the answers at the same time as the question.
“question”: “Question To Ask”,