Script Action is not triggering when an event is generated.

mohak4
Tera Contributor

I have a business rule that is queueing an event using gs.eventQueue() method. The event is generated in the Events table and its state is ready but the Script Action for the event is not triggering. Can someone help?

Thanks in advance.

3 REPLIES 3

Aman Kumar S
Kilo Patron

If it is in ready state, it means it has not been executed, once the state changes to processed then only the script action will kick in.

Check the Process on field in the list layout

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

Hi

For some reason "active" is false by default on script actions - Can you confirm the SA is active?

Thanks
-Harneet Sital (ServiceNow Certified Technical Architect)
Find all my ServiceNow articles here

Mohith Devatte
Tera Sage
Tera Sage

Hello @mohak ,

It needs to be in processed state in order to trigger the event 

please refer to this KB article this could be one of the reasons

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0688856

Also in your event log can you check these details 

1) On the form there is an instance field which will store the sys_id of the record for which event is triggered basically it depends on your BR logic .Can you check if this is empty or having any sys_id or showing error ?

If yes please send the script of BR to debug

Please mark my answer correct if it helps you