Does the Target Structure Type in the Array Aggregator module only has “Custom” option? Somebody told me that it should have “Array” option.
You shouldn’t need to specify “array” as the structure type - the array aggregator module produces an array.
The Target Structure Type assists you in defining the items to aggregate based on the module connected to your aggregator. If you leave it as “custom” you can just define the items to aggregate yourself.
So to answer your question - no, the Target Structure Type doesn’t only have custom as an option. The options you see there will depend on which modules follow your aggregator module.
Welcome to the Make community!
This is correct. Toggle the “Map” option on a complex field, and map the Array Aggregator’s array within it.
Then, if the field specifies a specification, you will be able to select a Target Structure.
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.
For more information, see Flow control page in the Make Help Centre, which covers the following:
- Repeater
- Iterator
- Array aggregator
and also,
- Setting up an iterator
- Learn when to use an Iterator in your scenarios
- Customizing the output
- Learn when to use an Array Aggregator in your scenarios
You should also take note of the following important details:
- Bundles outputted from the source module and any other modules between the source module and the aggregator module are not outputted by the aggregator and thus items in these bundles are not accessible by the modules in the flow after the aggregator.
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.