- 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 03:43 AM
Hi,
in the email notification event parm1 contains recipient is selected so you should send the 3rd parameter in the eventQueue() method
gs.eventQueue('delegate.deleted', current, gs.getUserID()); // you need to decide to whom it should be sent
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 03:48 AM
Hello Ankur,
Still getting the same. The event is setting as error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-12-2019 03:58 AM
Hi Nagendra,
What error it gives in event logs?
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:04 AM
Hi Ankur,
Just the state or the event is going to error. I have attached the snap above.
Regards.