Queries a Google sheet to get a list of client names
Start an iterator to look at each row, and then query ClickUp for each client name to see if we have a live job or not
Aggregates the results of the query and then passes ONLY client names who don’t have a live job with us
Aggregat the list of client names into a single output
Send a slack message to the team
I seem to have all of it working up until the Slack message. Slack is sending multiple messages one by one, instead of a single output as you’d expect after a text aggregator.
Delete the Iterator module. Each result from the Search Rows module will already output a separate bundle, not an array.
Setting the Correct Aggregator Source
You need to set the “Source Module” field of the aggregator to where the bundles are coming from. This is usually an Iterator module, but can also be a search/list/repeater module.
For more information, please refer to the Make Academy.
Combining Bundles Using Aggregators
Every result (item/record) from trigger/iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.
Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.
You can find out more about the other types of aggregator modules here:
(I stopped it early, but you can see, the spreadsheet has returned a list of client names, ClickUp has checked 6 of those client names, after going through the filters, 2 of them don’t have tasks and still 2 messages have been sent on Slack rather than 1.
Here is what I’m doing currently:
Google spreadsheet returns the list of names
On ‘List all tasks’ on Clickup, I have set the filters to Statuses “In Progress” and also filter on custom field (Client name). The input here is the output from the Google sheets stage, client name
Then, an aggregator is using the ‘list all tasks’ module as the source, and including the task ID as a way of separating results
Text aggregator is then taking the data from the array