event is triggering twice and getting duplicate emails for single update?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2019 05:08 AM
Hello All,
I have created one event called "asset.requisition.process.approved" and calling in business rules as below
(function executeRule(current, previous /*null when async*/) {
var usr = current.variables.on_behalf_of_user_name;
var usrMangaer = current.variables.on_behalf_of_user_name.manager;
//gs.addInfoMessage("onBehalfOfUser ;" +usr+ "user's manager :" + usrMangaer);
if(current.variables.rollback_required=="yes"){
gs.eventQueue("asset.requisition.process.approved", current, usr,usrMangaer);
}
})(current, previous);
Based on the below conditions my business rule is running but triggering twice for single update any possibility to resolve the issue
Getting two emails at same time how can I trouble shoot this issue, what are the possibilities for getting duplicate emails or triggering same event in twice
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2019 05:16 AM
Do check if there are any other notifications that are being triggered by the same event.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2019 11:57 AM
I have checked, same event is been triggering twice with same timestamp

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2019 12:04 PM
Can you do below and see if that event is mentioned in any other business rule
https://XXXXXXX.service-now.com/sys_script_list.do?sysparm_query=scriptLIKEasset.requisition.process.approved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2019 12:13 PM
I am getting only one business rule, which I am using it currently.