Hi there!
I’m trying to get a list of items from an auction site and save them into a google spreadsheet. In the last part of the process, when I need to iterate over the JSON values, I’m not getting the expected result (see step 5)
These are the steps I’m executing
1) HTTP request to get the HTML from the page. In that HTML there’s a JSON embedded
2) I use a regex to extract the JSON from the HTML (screenshot)
3) I use Parse to JSON to convert the string from the regex Fallback Match. In the images you can see the config and the results (I expanded one of the groups to show the example values I have in there).
Important note here: it seems the data in the JSON is formatted with a unique name for each node (“AuctionLot.8935”, “AuctionLot.8634”, etc), and this probably affects the following steps
4) I use an iterator to bring into a new JSON (or is it an array in this case?) with ONLY the nodes that I need. As a result, I get 1 bundle per node (I expanded one of the groups to show the example values I have in there)
5) In this step is where I don’t know what’s happening.
I added a “Set multiple variables” just as an audit point to try to see if I can iterate throu the bundles of the previous step, but the only option I have when configuring it is “Values” and not the specific fields inside of the bundles/nodes (see image 1) while I should see something like the second image. For example, I’d like to use the field “auction_lot_id”
What can I do in order to iterate on step 5 throu each Bundle so I can have N rows (one per each bundle) as a result?
Any ideas/suggestions are more than welcome!
thanks