Why my event is not created at all?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 05:28 AM
if (current.operation() != 'insert' && current.comments.changes()) {
gs.eventQueue("sctask.commented", current, gs.getUserID(), current.request_item.opened_by);
}
What's wrong with this event business rule?
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 05:45 AM
Is the event 'sctask.commented' or 'sc_task.commented' on your registry?
-David
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 05:57 AM
Hi @Koushik Ningara,
Make sure the event name is correct and check the event logs table where logs records created or not?
Thanks,
Sagar Pagar
The world works with ServiceNow