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 Jain2y 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_absalomOP2y ago
Thank you!
mdd
mdd2y ago
@Pawan Jain @dimagrossman @paweltymczuk @galiainouz @pablo.fernandez.otero @george.d There is any plans for something like idempotencyKey for trigger?
Dima Grossman
Dima Grossman2y 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
mdd2y ago
What is scope of transactionId uniqueness? Envrionment? Organization? Whole system?
george.d
george.d2y ago
It is on Environment Level.
Want results from more Discord servers?
Add your server