Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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?

_____
This reply is 100 % GlideFather and 0 % 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.... 

_____
This reply is 100 % GlideFather and 0 % AI

Ankur Bawiskar
Tera Patron
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  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader