Filtering by quantity

Hi there,

Could you please help me set up a filter for quantity, for example, the scenario only continues when 4 files are uploaded into a google drive folder? I’ve tried this, and many other ways, but no luck.

Thanks!

1 Like

Hi @Tricia, Do you have an iterator or some other module behind, which would make this ‘upload a file’ module multiple times? This upload module only uploads one file at a time, so we probably can’t filter the number only from this module alone.

Hi thanks for answering.

The scenario is sourcing the info from an excel file, then it creates images with that info in google slides and uploads to google drive. The excel is set to run 4 times. If I unlink the Instagram module (last one) it runs perfectly and uploads 4 files into drive. But If I link it to the Instagram caroussel module, it only runs once, and I get an error from Instagram because there is only one file… I’ve already tried using an iterator and array aggregator but it didn’t work. Do I have to create a second scenario to get the files from google drive and create the Instagram caroussel?

Thanks!

1 Like

@Tricia, You’re already iterating. Watch new rows creates multiple bundles and one bundle = one iteration. You should have ‘bundle order position’ in this module, which is the order of iteration. In the filter before instagram, you should use : (Bundle order position equals to Bundle total amount) to activate on last iteration.

BUT, I’m assuming you’ll want all 4 files uploaded on instagram together ? This will only upload the last uploaded file (last iteration). Let me take a look on the input data on instagram and get back to you.

edit : Ok you need to input multiple URL of photos. you can’t use google drive though.

@Tricia, you’ll have to find another method of getting Photo URL, but take in account that you’ll need all 4 URLs. I’d advise to use ‘set multiple variables’ module just after uploading the photo with name:value pairs of :
photo1 : if(bundle order position = 1 ; {{link}} ; emptystring)
photo2 : if(bundle order position = 2 ; {{link}} ; emptystring)
photo3 : if(bundle order position = 3 ; {{link}} ; emptystring)
photo4 : if(bundle order position = 4 ; {{link}} ; emptystring)

and then reference photo1 2 3 4 in instagram file urls.

Great! I will try it and I hope I’ll will get back later with good news. Thank you for your support!

1 Like

Welcome to the Make community!

Aggregators

Every result (item/record) from a polling module like “Watch New Rows” 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:

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.

Hi, thank you for your help!

I’ve changed my scenario and I was able to publish the carousel, the problem now is that the images were published out of order. I’ve used the “set multiple variables” module as @kudracha suggested, but Instagram returns an error that only photo or video is accepted - Only photo or video can be accepted as media type. (9004, OAuthException). The output I’m getting are URLs. Any suggestions on how to solve this?

Thanks!

1 Like