How to call another 2nd scenario when 1st scenario is done adding rows to Google Sheets

I have a scenario that calls an actor on Apify, returns the dataset, and then adds new rows to a Google spreadsheet.

Let’s say the Apify call returns 10 results.

After the 10th item is added to Google sheets, I want to use an HTTP request module to call another scenario that has a webhook.

Here’s my problem: if I add the HTTP request at the end, it will try and call the second scenario 10 times.

How can I detect that all 10 rows have been added AND THEN call the second scenario.

Hey Jonathan,

either put a router in the beginning and have the HTTP module on the second route, or put an aggregator after the Google Sheets module to go back to one bundle.

3 Likes

Oh man…thank you so much. I was banging my head for days trying to figure that out.

I went with the array aggregator option.

2 Likes