Duplicate email send to the user

Nisha Mishra23
Tera Contributor

There is two same email send at same time to the user. I have checked BR and I have checked notifications as well. Is there anything else which can be done in order to find the bug.

8 REPLIES 8

Not applicable

From where do you trigger the notification (BR,flow,workflow or directly configured)?

please provide the SS of the two emails with the event name

There are some condition and I am using record inserted and update in notification. I find out that due to below code the issue occurred but the thing is I need this code in order to update the values is there anything else we can do in order to resolve the issue by using this code as well

if (input) {

if (input.action == "addMessage") {
data.myObj = input.myObj;
}
var grExt = new GlideRecord('sn_ext_usr_reg_request');
grExt.addQuery('userid', data.myObj.userid);
grExt.query();
if (grExt.next()) {
grExt.u_select_type = data.myObj.user_type;
grExt.update();
}
}

Is this in a client script of some sort? I'm confused as to when this is running. If you have a BR running on update and you are doing a .update() within that BR, it will create a loop and could be causing the issue you're seeing. It's best to do a BEFORE BR and just set the field without doing the .update().

Actually the update() is used in server script in Widget due to which the issue occur