Duplication of events using multiple digests in the same trigger workflow

Hello, I have a workflow configured with 6 digests. Each of them with exclusive conditions based on custom data (JSON) set on the subscriber profile. Each digest is schedule every day at specific different time. After all the digests, we have an email step. When I trigger 3 events, the first event is digesting 13 events resulting in duplicated data in the email. Out of the 13 events, 1 is from the first event (it bypassed the other digests properly) and then 6 for each of the subsequent events (it did not bypass the other digests properly). Can you advise on how to remediate to this bug? Thank you, Cathleen
8 Replies
Pawan Jain
Pawan Jain•4w ago
@Cathleen Ghenne Currently, we don't support multiple digests in one workflow. We support one single digest per workflow Could you please share if you are using @novu/framework or creating workflow from UI?
JF Cloutier
JF Cloutier•4w ago
Hi, we are creating the workflows through the UI.
Novu_Bot
Novu_Bot•4w ago
@JF Cloutier, you just advanced to level 1!
JF Cloutier
JF Cloutier•4w ago
What's the best approach to allow a user configuration of a digest delay? Is it duplicating all the workflows? Let say we have 6 workflows, and want to provide 30 minutes, 1h, 4h, 8h, 1d, 1w options, we have to copy paste in 30 different workflows, correct? Or is there any other better option?
Tomer Barnea
Tomer Barnea•4w ago
@JF Cloutier , this is on roadmap to provide native support in the preferences screen, but I am unsure if we can do that before mid Oct You can do that today natively by using Framwwork, @Pawan Jain do we have an example if that?
JF Cloutier
JF Cloutier•4w ago
We can potentially wait for the support of that feature in october and provide only 1 digest duration for now. Would be cleaner. I'll check the changelog in October for that 🙂 Thanks!
Pawan Jain
Pawan Jain•4w ago
It will be similar to this example, use unit and amount values from payload or subscriber.data field
Pawan Jain
Pawan Jain•4w ago
@JF Cloutier I found this image from your old post Is this the current setup? Are you using conditions on digest step based on subscriber attributes or payload variables?
No description

Did you find this page helpful?