Event triggering duplicate emails

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2023 07:01 AM
Help please!
We have a workflow activity to create an event (user.proposed) which then fires a notification to the user that they have been proposed for something. The workflow then waits for a condition to be met, the condition being that they have been selected (triggered by a yes/no variable change) and this triggers another event to be created (user.selected) which fires a second notification to the user to say they have been selected. The issue we are having is that when the second event is fired it is generating two identical emails to the user. We have checked notifications and there is only one notification triggered by that event.
Both events are trigged by the same script, and both use event parameter 1 as the recipient. We have tried changing the script in the second creator, and also tried passing the second event into event parameter 2, but still it fires 2 emails each time. Why??
Original script:
Tried variants using var shemailSysId = []; and changing userName to shuserName
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2023 06:51 AM
@Cirrus ,
Can you check Event logs for how many times the event was triggered along with the time stamp. Also, can you try putting a log in script section of the wait for condition and during execution try tracking the number of times this log appears in the system log when you select the yes no question?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2023 02:52 AM
Turns out a simple join fixed the issue. When the request is submitted, two events trigger, one to the user, one to the manager. Both transitioned into the condition, but adding a join ahead of that transition has resolved the issue