You're missing the part of the flow that's interesting... where you get the data from.
It seems like you're getting multiple rows, not just one. So, the output of the action that you are referencing are an array, not an object.
Try getting only one row... If you cannot do that, show us what's written in the apply to each action (reference to the previous action) and then the reference inside the apply to each action, then I can write the code for you to get the data you want.
Don't worry, it's not an unsolvable problem.