Removing bundle on condition

My goal is to remove bundle 1 only if variable “type” is equal to “reply”. If it does not equal reply than I want to keep it.

My following module is a text aggregator with available variables

Hey @Jacob12
You can use filter for this

“type” is not equal to “REPLY”

Here in the place of Bundle order position select type variable

If the condition is true then it will go to another module.

Thanks

2 Likes

But this will filter out every bundle with “Reply”? @ManishMandot

Hey @Jacob12 - so you’re really close, the only thing I would add to @ManishMandot recommendation is you could add an increment module (see image) that increments for each bundle that passes through it and then have the filter only apply to the first bundle.

You can disregard the flag status and notflagged parts, I was just working with the office 365 mail module to get some test bundles with to validate the functionality for this example. In your case you’d do the Reply filter as well as the increment filter with an AND to have it work properly for your use case!

4 Likes