How to add more elements to a collection

:bullseye: What is your goal?

To add more parameters to a collection

:thinking: What is the problem & what have you tried?

I have a scenario where I perform multiple YouTube searches with different search phrases. Each search returns a list of video items, and for each search I end up with a collection of video results. At the end of the flow, I have an array of collections, where each collection contains the videos found for a specific search phrase.

Now I want to add the search phrase as a parameter inside each collection, so every video result bundle will also contain a field indicating which keyword was used to retrieve it.

E.g.:
• Collection 1 → video information + search phrase 1
• Collection 2 → video information + search phrase 1
• Collection 3 → video information + search phrase 2
• etc.

If the same video ID was obtained via different search phrases, I only want to keep the first search phrase (don´t need all of them).

However, I am not sure how to properly attach the search phrase to each collection inside this array so that I can use it later in the scenario.

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

YouTube IA news.blueprint-5.json (142 KB)

Specifically, I´d like to add search phrases to the “dedupted” array, so that the corresponding search phrase appears in each collection of IDs:

Hey there,

you can try adding it using a set variable module when building the array.