Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Widget gs.eventQueue throws error - 'The event is not defined'.

Sadrudeen Ashr1
Tera Expert

Friends, 

I use gs.eventQueue to call my event trigger in UI action which works fine. 

When I use the same gs.eventQueue in Widget to call my event trigger I get the below error message, 

Kindly help on how to define an event in Widget.

 

"Access to event '(event name)' from scope 'Service Portal - Standard Ticket' has been refused. The event is not defined."

1 ACCEPTED SOLUTION

Thanks for your reply, Resolution is like Pradeep Sharma advised "Can you create an event in the same scope and try once. Leave the table field to blank."

I have created the event in the Same scope of my widget and left the table field to blank, 

to my surprise it worked with no issues. 

 

https://www.servicenow.com/community/developer-forum/incident-application-and-event/m-p/2093327#M750...

View solution in original post

7 REPLIES 7

Thanks for your reply, Resolution is like Pradeep Sharma advised "Can you create an event in the same scope and try once. Leave the table field to blank."

I have created the event in the Same scope of my widget and left the table field to blank, 

to my surprise it worked with no issues. 

 

https://www.servicenow.com/community/developer-forum/incident-application-and-event/m-p/2093327#M750...

Sadrudeen Ashr1
Tera Expert

@gdm1411  , 

saw your post (https://www.servicenow.com/community/developer-forum/incident-application-and-event/m-p/2093327#M750...  @Pradeep Sharma replied saying below as a solution.

Could you please share the solution code with me? I mean how to create an event in the same scope ?

 

"Can you create an event in the same scope and try once. Leave the table field to blank."

Prashant Ahire
Kilo Sage

Hello @Sadrudeen Ashr1 
Please give the Value of the event name in Widget.

This will solve the error.

Thanks and regards

Prashant Ahire

Please give a like if it worked