When I run the action, it gives the expected values in the 'repeat' section, when output is on. So in this case it gives a value for the datafield 'close' which is correct. I then try to store the data in the list I created, wherein is a single variable called 'close' as Text. When I now try to add in the value 'close' in the created list, it doesn't add the value. It gives me 100 empty results.
So, to recapitulate, I created a list with a text value, run the repeat on the amount of data from the API-request, 100 returns, the repeat shows the datafield 'close' and gives the right number for each of the 100 fields. I try to store this same number from the repeat in the field, and the list is filled with 100 empty records.
If I check with 'Size' how big the List is, then I get 100 values in return: so that's good. If I check with 'isempty' I get false as a return, so: also good. But when I ask for the stored values, the same as the output of the repeatfunction gives with no errors at all, then I get 100 empty records.
No, sadly not. It's the AlphaVantage API for stockmarket data. But yes, they give all this data in a weird way. I just don't understand though how the repeat gives the data (the value of 4. close:) and then I can't store this data in the list. The same number I mean as given by the output of the repeat.
It's of course just the number I'm after
And by the way, the return is indeed JSON. You can also get the data in .csv. But the standard response is JSON. Although it looks to be nested and with weird values for the fieldnames.
Ok the i see.
In Wappler you need to get the proper schema, but that's also an issue because of the spaces used in keys/property names.
Please open your alphavantage api directly in the browser and copy the response from there, after that open the API step and paste it in the Schema source window, then click the get button:
this will make the schema available and all the weird formatting in the key names properly escaped for the next steps. So you will be able to pick all the values for the repeat and the steps inside it.
I see you already have the correct schema, but the property names with spaces and dots are just messing the things.
You will need to manually adjust the value in the Add In Array step to this: