Create an async UI Action

sieusaopolo15
Tera Guru

Hi,

I want to create an UI Action when users click on it, they don't have to wait for UI Action to complete to proceed other function in the instance such as insert / update records, view records or access to another module. Can UI Action like that possible to develop ?

1 ACCEPTED SOLUTION

Tony Chatfield1
Kilo Patron

Hi, you can trigger a sysevent IE gs.eventQueue() in the UI Action script

Generating Events | ServiceNow Developers

and then consume the event asynchronously via a script action

Script actions (servicenow.com)

Some OOB UI action examples from a PDI that create sysevents.

/sys_ui_action_list.do?sysparm_query=scriptLIKEeventqueue&sysparm_view=

View solution in original post

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, you can trigger a sysevent IE gs.eventQueue() in the UI Action script

Generating Events | ServiceNow Developers

and then consume the event asynchronously via a script action

Script actions (servicenow.com)

Some OOB UI action examples from a PDI that create sysevents.

/sys_ui_action_list.do?sysparm_query=scriptLIKEeventqueue&sysparm_view=