event is triggering twice and getting duplicate emails for single update?

Shantharao
Kilo Sage

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

 

find_real_file.png

 

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

11 REPLIES 11

rad2
Mega Sage

Do check if there are any other notifications that are being triggered by the same event.

I have checked, same event is been triggering twice with same timestamp 

Mike Patel
Tera Sage

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

I am getting only one business rule, which I am using it currently.