Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Issue within email notification from event trigger

HP8
Giga Guru

Hello team, I am pulling my hair. So 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: sc_request

When: After , Update

Filter Conditions: If Short Description > is > xxx

AND

If Request State > changes to > Closed Complete

 

Script:

(function executeRule(current, previous /*null when async*/) {
gs.eventQueue('sn_customerservice.ape_rc_modify',current,current.variable_pool.user_email,gs.getUserName());
gs.info('Eemail recipient' + current.variable_pool.user_email);
})(current, previous);
 
On the email notification:
Table: sc_task
Triggered by event: sn_customerservice.ape_rc_modify
Event parm 1 contains recipient ticked

 

1 ACCEPTED SOLUTION

Not applicable

@HP8 Your Business Rule is set up on the sc_request table.

Your Email Notification is set up on the sc_task table.

The event sn_customerservice.ape_rc_modify is being triggered from the sc_request table, but the notification is expecting it to come from the sc_task table.

Please try after changing above and it should work.

View solution in original post

2 REPLIES 2

Not applicable

@HP8 Your Business Rule is set up on the sc_request table.

Your Email Notification is set up on the sc_task table.

The event sn_customerservice.ape_rc_modify is being triggered from the sc_request table, but the notification is expecting it to come from the sc_task table.

Please try after changing above and it should work.

You are quite right! I changed the BR table to sc_task and created a glideRecord to grab the field conditions from the sc_request table instead!