12 Dec 2022
01:27 AM
- last edited on
20 Apr 2023
12:56 AM
by
educampver
Hello team,
I have a workflow action where I want to loop over an array of locations (lat, long)
I named the item variable "locations" and the list would look something like this.
[{lat: 48.29226713, long: 14.29553878}]
How can I access these values in my HTTP Request?
EDIT: I have tried writing {{locations.lat}} but it doesn't seem to work this way.
EDIT_2: Figured out that my value for the list was malformed (invalid json). Using [{ "lat": 48.29226713, "long": 14.29553878}] works but still don't know who to read those values
Solved! Go to Solution.
Hi Martin,
To access loop variable with e.g. its name set to locations. You can access it like {{ _.locations.lat }} (mind the _. at the beginning)