Add values to list while looping?

I am looking to get peoples server nicknames (if set) and add them to a spreadsheet. I need to do one api query per user, is there any way to easily add each result to some temporary array or list variable? I wanna add everything to a spreadsheet row down the line

Hello @Rekkert ,

You can use the Storage piece to store list/array data. First, initialize an empty list in storage using the “put” action of the piece (as shown in the image). Then, use the “Add to List” action inside a loop to add each element one by one to the list.

1 Like