Business Rule to trigger event
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 02:56 PM
Hello SN Community,
I am trying to trigger an event based off the conditions that the case is closed and the additional comments changes. Currently, it doesn't look like the event is firing at all with my current parameters. I think I am calling it correctly, but I must not be doing something right. Thanks!
(function executeRule(current, previous /*null when async*/) {
gs.eventQueue ("sn_customerservice.case_closed_email", current, gs.getUserID(), gs.getUserName());
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 03:14 PM
Hello,
Firstly set a gs.info() statement to check if your BR is triggerring with current condiitons and then
Convert parameters into Strings in the event trigger
gs.eventQueue ("sn_customerservice.case_closed_email", current, gs.getUserID().toString(), gs.getUserName().toString());
Thank you,
Vikram

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 06:30 PM
Hi is your record setting active to false?Once you close the case? also i think there is a space after eventQueue method can you check and remove the spaces?
gs.eventQueue ("sn_customerservice.case_closed_email", current, gs.getUserID(), gs.getUserName());
to
gs.eventQueue("sn_customerservice.case_closed_email", current, gs.getUserID(), gs.getUserName());
Harish