Losing variable value

I have a function that returns an array of objects and loops sending a request for each object,
but when trying to send the second request it loses the value of the variable that was set


Captura de tela 2021-08-06 125933

does anyone know how to not lose the variable ‘api_endpoint’ when looping?

Change $node['set"].json["api_endpoint"] to $item(0).$node['set"].json["api_endpoint"]

thank u, it worked

Happy that it worked. Have fun.

1 Like