Email notification should not triggered when the incident record is created with the state of closed

DeepikaR1661877
Tera Contributor

Hi every one,

I have one issues, when the incident record is created with the state of closed then the email notification should not triggered, but it's should trigger when the state is changed to one state to other.so i have created the event registry added into this BR and trigger this into the notification, how can i add the condition

1.when the SIR Created with the state of closed then notification should not trigger

2.When the SIR Created the Draft state then the state is changes from one state to closed the notification should be triggered,

BR condition,

(function executeRule(current, previous /*null when async*/) {
 
if (current.assignment_group.changes()) {
        gs.eventQueue('event name', '', '');
    }
 
 
})(current, previous);
6 REPLIES 6

Can you give it a try with flow designer?

Thanks & Regards

AAGAMB
Tera Contributor

Hi Deepika,

If it is not working, you can try simply creating a BR rule and keep when to run condition for update, Kindly let me know if it works

AAGAMB_0-1736229384218.png