We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Global Event calling from Employee Center Core application scope

vinay167
Tera Contributor

Heyy i am working on a widget which is present in Employee Center Core now we have the same functionality in UI Action.
Now i need to call an event in that widget but the event is present in global scope when i am trying it is givin me an error.
"Access to event 'requestrevision' from scope 'Employee Center Core' has been refused. This event is not defined."

4 REPLIES 4

GlideFather
Tera Patron

Hi @vinay167,

 

have you tried re-creating it in the corresponding scope? Or eventually check the scope accessibility?

_____
100 % GlideFather experience and 0 % generative AI

There are some notifications are also associated with global event. When i am creating new event in current scope it is working fine. But i want to use globle one.

I guess that you answered yourself 😉 scoped ok, global not ok.... 

_____
100 % GlideFather experience and 0 % generative AI

Ankur Bawiskar
Tera Patron

@vinay167 

so event is in global scope and you want to call it from your scoped widget.

I believe events cannot be called from cross scope.

You need to have event in same scope.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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