Help

Iterator

Iterator is a special type of module that converts an array into a series of bundles. Each array item will be outputted as a separate bundle.

Setting up an Iterator

Setting up an iterator is done in the same way as setting any module. The "Array" field contains the array to be converted/split into separate bundles.


Example: Save email attachments to Dropbox

The below scenario shows how to retrieve emails with attachments and save the attachments as single files in a selected Dropbox folder.

Emails can contain an array of attachments. The Iterator module inserted after the first module will enable you to handle each attachment separately. The Iterator will split the array of attachments into single bundles, each bundle with one attachment will then be saved one at a time in a selected Dropbox folder. The Iterator module set up is shown above - the "Array" field should contain the Attachments[] array.

Specialized iterators

For your convenience, many Integromat apps offer specialized iterator modules with a simplified setup. For example, the Email app contains the special iterator "Iterate attachments" that will produce the same results as the general Iterator without having to specify the array, just the source module.

Rate this article: