Event triggered, but the state is going to error.

Nagendra11
Kilo Expert

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?

 

find_real_file.png

 

find_real_file.png

Business rule configured.

 

Notification:

 

find_real_file.png

 

find_real_file.png

 

Please let me know if anything is not configured properly.

Thanks in advance.

1 ACCEPTED SOLUTION

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());

View solution in original post

16 REPLIES 16

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hello Ankur,

 

Still getting the same. The event is setting as error.

 Hi Nagendra,

What error it gives in event logs?

Regards

Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

 

Just the state or the event is going to error. I have attached the snap above.

 

Regards.