Seperate an array

Hey

I’m trying to make an automation that gives me weekly stats of all my campaigns. When i call the Instantly API, it gives me one bunlde with a collection for each campaign. I want to seperate this data based on the campaign, how do i seperate them to for a example a notion database item?

Hey @Bendik_Fausko-Johans, I can’t see what you already have set up but I’ll do my best to show you how to get it sorted.

Solution:
Preface: I am presuming each bundle of data coming through from Instantly is a different campaign.

  1. By bundle: See the basic setup of this scenario, I’ve imitated the Instantly module with the tools and array aggregator, where the output of the aggregator is some array with a number of collections within it.

    Now, if each bundle of data is a separate campaign, the solution is simple; add an iterator and iterate across the entire array, as shown below. Output is shown as well.

    The iterator makes your scenario run with the first bundle of data, then the second, and so on till it reaches the final bundle from your Instantly module. You can see on the final built scenario my last module (simple multivariable) ran twice and output two different sets of numbers, the first bundle’s then the second’s.

I hope this was of help to you. If this helped you solve the problem please mark this as the solution. If you need further assistance reach out again and I’ll try help again.

All the best,
Nathan Kind
Lead Software Consultant | KinderTech