Unable to output multiple images into spreadsheet

Hi guys,
please can you help me. I am trying to list all of the private url links from a single slack message which contains text and multiple images. My aim is to input text and multiple image files (varying from 1-10 images) into slack (in one single slack message) to automate content creation from a single message using my pictures I’ve uploaded and text.
Currently, slack module 9 can find the image files (see image) which have been uploaded, but it only outputs 1 of the 2 files which were uploaded (see image) onto my spreadsheet as a url. I think it’s something wrong with my code for the google sheets module but im not too sure.

Any help is appreciated!

I have also provided a picture of my code and of the scenario. please let me know if you need anything else to help me





Hey Oscar,

at the moment you are mapping only a single item from an array of urls. You need to map the entire array instead.

You can use the map() function to create a simple array that only contains the urls you need and map that entire array instead.

Hi Stoyan
Thanks for your help
unfortunately this didn’t work, it says “Failed to map ‘values.11’: Function ‘map’ finished with error! ‘Slack’ is not a valid array.” Please see photos & any suggestions to what im doing wrong are much appreciated


You need to work on “Files”, not on “Files: Url private download”

It should be something like map(Files;Url Private download)

If you can share the input bundle I can check it and see what the correct formula should be.

please see below



Welcome to the Make community!

When you see ARRAY, think ITERATOR.

Then,

Aggregators

Every result (item/record) from 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.

There are other types of aggregator modules, click the below links to find out more:

Array Aggregator – mapping multiple bundles 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” of 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.

1 Like

Thank you mate, got it working now!