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

Hi Nagendra,

error state is set when something wrong with event parameters.

can you share the updated code?

Regards

Ankur

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

Hi Ankur,

 

I need the delegate's name so, i am giving current.delegate. Also i tried gs.getuserID() too:

 

find_real_file.png

Regards.

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

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

Hi Ankur,

 

Yes, Delegate's sys_id is being populated and the user is active too.

 

Regards.

can you add current.delegate.toString() or current.delegate.getDisplayValue() in your eventQueue() 

because 3rd parameter should be string.