- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-12-2019 03:39 AM
Hello Everyone!
i have a notification which should trigger when the event is triggered. The event is triggering with a business rule. Have checked and the business rule is working fine and the event is being triggering. But in the events log if i check, the state of the triggered event is in error state. So the notification is not being generated. So can any one tell me why the event is going to error state?
Business rule configured.
Notification:
Please let me know if anything is not configured properly.
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-12-2019 06:18 AM
i am not sure here, what is the exact requirement you have. if you are deleting then current object will not work.
in delete operation if you will pass the null then it will work.
example:
gs.eventQueue('event name',null,gs.getUserID());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-12-2019 04:15 AM
Hi Nagendra,
error state is set when something wrong with event parameters.
can you share the updated code?
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-12-2019 04:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-12-2019 04:37 AM
Hi Nagendra,
Did you check in logs 3rd parameter is delegate user sys id or not?
also check whether delegate user has email id populated, is not locked out and is active true
debugging stuck emails
https://community.servicenow.com/community?id=community_blog&sys_id=f0dc6665dbd0dbc01dcaf3231f961955
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-12-2019 04:42 AM
Hi Ankur,
Yes, Delegate's sys_id is being populated and the user is active too.
Regards.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-12-2019 04:48 AM
can you add current.delegate.toString() or current.delegate.getDisplayValue() in your eventQueue()
because 3rd parameter should be string.