The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Trigger event from business rule

LJ_23
Tera Contributor

Hi team,  I have a business rule set up to fire an event on an email notification. I can see in the event log that the event is being triggered, however it is not sending the email notification for some reason!

 

Business rule & BR script:

Table: x_lbg_fbs_case_fbs_case

When: After , Insert, Update

Filter Conditions: none

 

Script:

(function executeRule(current, previous /*null when async*/) {
    // Check if the assigned_to field is updated and not empty
    if (current.assigned_to.changes() && current.assigned_to) {
        // Call the event
        gs.eventQueue('x_lbg_fbs_case.LBGGFScasenew', current, current.assigned_to, previous.assigned_to);
    }
})(current, previous);
 
On the email notification:
Table: x_lbg_fbs_case_fbs_case
Triggered by event: x_lbg_fbs_case.LBGGFScasenew
Who will receive: Assigned to 
6 REPLIES 6

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

You might have events piled on, did you check email logs? 

-Anurag

jcmings
Mega Sage

Have you have enabled outbound email via system properties? I would check to see if the email is in a send-ready state in the email logs table (sys_email_list.do).