Hey guys,
Please see this very short video for my question, as its much easier to explain in a video, but basically, I am using an iterator to break up a batch of info into 10 seperate bundles, BUT i am not able to select individual bundles in the modules further down the line.
Can someone please help
Video here Recording #415
Anyone? This is really grinding on me now
Hey Lee,
you don’t need the iterator for this. You can use the order index of the item you want to map it directly form the array. In your example, 30% will be item with order index 3 from the array.
Can you show an example? I was expecting each item to come through as objects that I can click and drag into fields.
How do I do this?
Is there not a method to just make each bundle an object that can be dragged into fields from the list of objects?!?
I don’t understand why this is so complicated.
Think about it - in your case the array has 10 items, right? What if it was 10 000 items, 10 million? How will Make show them? What you are asking is the complicated way, what Make is doing is the simple one. This is why it only shows the first item. Then you can map the first item and just append the order index to the item you need.
I understand this, but is there a way to make them available in the data picker? Would I have to set them all as variables?
Welcome to the Make community!
You need an Array Aggregator.
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:
Mapping a Specific Structure Into a Complex Field
The Array Aggregator module is very powerful because it allows you to build a complex array of collections for a later module’s field to map multiple items (collections) to it.
This is done using the “Target structure type” field in an Array Aggregator module.
Here is an example:
As you can see, the “Map” toggle on complex fields are used when you have an array. You can easily build an array variable to map to a future module’s field, by using an Array Aggregator module and select the “Target Structure Type” as the future module’s field you have mapped the array into.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.