How can i call Event from UI Action?

IamAmolB
Tera Guru

Hi Experts,

I want to call event from UI Action, How can I call that?

1 ACCEPTED SOLUTION

Rajesh M1
Giga Guru

Hi Amol,



Use below code to trigger the event:



gs.evenQueue("event name", "Glide object", "Param1", "param2");



refer below link for more details:


GlideSystem - ServiceNow Wiki



Best Regards,


Rajesh M.


View solution in original post

5 REPLIES 5

Anurag Tripathi
Mega Patron
Mega Patron

If its a serverside ui action then directly gs.eventQueue will work,



if its a client side then you make it a client /server side and use gs.eventQueue. follow this link to make a ui action to run both on client and server


Client & Server Code in One UI Action - ServiceNow Guru


-Anurag

IamAmolB
Tera Guru

what is the code to run Event from UI Action?


Rajesh M1
Giga Guru

Hi Amol,



Use below code to trigger the event:



gs.evenQueue("event name", "Glide object", "Param1", "param2");



refer below link for more details:


GlideSystem - ServiceNow Wiki



Best Regards,


Rajesh M.


IamAmolB
Tera Guru

Thank you Its Really helpful for me