Script Action is not triggering when an event is generated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 02:26 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 02:28 AM
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 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 02:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2022 02:35 AM
Hello
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