Text parser gives me 2 bundes and makes my scenario operated twice, not once

Hi, I get a text from telegram as a trigger, and with a text parser module, I match links in the telegram message.
The problem is that when there are two links in the telegram message, I get two bundles in the output:

and then the rest of my scenario is operated twice:

I want my scenario to be operated only once. How can I do that?

Hey @Pamela1

You can use Array Aggregator or Text aggregator to aggregate the bundles.

Row separate with comma (,)

if you want to access that link then use get and split function

Thanks,
Sachin Shrivastava

2 Likes

Every result (item/record) from a search module will output a bundle. To “combine” them into a single structure, 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.

2 Likes

Thanks for your answers @samliew and @sachin.shrivastava
Is there a way to tell to the text parser something like “just get the first url you find”? That would work for me.

Yes. Simply set Global Match to NO.

2 Likes

Finally I solved it like this:
image


image
When there are several links in the message, the text parser creates several bundles. I Aggregate them with the aggregator to get an array, and then, since I want to use only the first link in the message, in my scenario I use that: image

1 Like