Trigger sending multiple emails


(Mitch Kerry) #1

**Matrix Version:**5.4.1.3

Hi

I have a trigger this is supposed to send 3 emails based on a metadata value (after asset metadata updated).
It triggers from updating a user asset.
The first time I update, the correct amount of emails are sent, but if I update again 63 emails are sent.

Any ideas?

Thanks
Mitch


(Bart Banda) #2

63 emails, ouch. Sounds like it might be firing for each metadata field?

Can you share your config of the trigger?

What kind of update are you doing? Just saving the metadata screen?


(Mitch Kerry) #3

Hi

I’ve changed the process a little, so now I’m only getting 6 emails :slight_smile:
This is the trigger outline. It’s pretty simple. The metadata is changing when a user asset edit form is submitted.

Event:
After Asset Metadata Updated (tried a few diff events with same result)

Conditions:
Tree location of the User assets being updated
If the metadata value of the metadata.value Id : #XXXXX field in the asset has a exact match with yes

Action:
Send email trigger action.
(Email recipient is a keyword from the form.)

Does that help Bart?
Thanks


(Bart Banda) #4

Have you tried adding a condition on the asset type as well to see if that does anything?


(Mitch Kerry) #5

Yes…same issue.
I have a ticket in support so will work through there I think.
Thanks Bart!


(Mitch Kerry) #6

Hi

Turns out this is a bug and the work around is to use post vars of the metadata field instead of asset metadata vars.