Is there a way in Novu to stop sending the same email more than once to subscribers?

If the email gets triggers twice can I stop it from being delivered to subscribers if they have already received the same email.
6 Replies
Pawan Jain
Pawan Jain17mo ago
hi @kumar_ujjawal Only way is to cancel the triggered event https://docs.novu.co/api/cancel-triggered-event/
Cancel triggered event - Novu API Reference
Using a previously generated transactionId during the event trigger, will cancel any active or pending workflows. This is useful to cancel active digests, delays etc...
absalom_absalom
absalom_absalomOP17mo ago
Thank you!
mdd
mdd17mo ago
@Pawan Jain @dimagrossman @paweltymczuk @galiainouz @pablo.fernandez.otero @george.d There is any plans for something like idempotencyKey for trigger?
Dima Grossman
Dima Grossman17mo ago
A similiar behaviour could be used with passing a custom "transactionId" key when triggering. Novu performs a check for duplicate transaction id prior to executing a trigger. Let me know if that will help
mdd
mdd17mo ago
What is scope of transactionId uniqueness? Envrionment? Organization? Whole system?
george.d
george.d17mo ago
It is on Environment Level.
Want results from more Discord servers?
Add your server