Hello. I have a very simple workflow that got data from Google Places API and send this data to the code node “Extract displayNames only”:
[
{
"places": [
{
"displayName": {
"text": "Joe's Pizza Broadway"
}
},
{
"displayName": {
"text": "John's of Bleecker Street"
}
},
{
"displayName": {
"text": "John's Pizzeria of Times Square"
}
}
],
"nextPageToken": "xxxxxxx"
}
]
The code node extract only the displayNames since I don’t need the parent “places” element:
[
{
"displayName": {
"text": "Joe's Pizza Broadway"
}
},
{
"displayName": {
"text": "John's of Bleecker Street"
}
},
{
"displayName": {
"text": "John's Pizzeria of Times Square"
}
}
]
Then I have my Loop Over items node that is supposed to loop over the display names and append each display name to a google sheet. After all the rows for the current page had been added to the Google sheet there is a loop to execute again the Google Places request taking the nextPageToken as parameter to get the places for the next page from the API.
Everything is working except the loop over item only happens once so only the first page (3 display names) are appended to the Google Sheet. After this the “Loop Over displayNames” is always considered Done, so it does not go anymore through the Append row in sheet node. It is just looping over the main loop requesting the next pages.
Thank you for your help.
