The CreatorCon Call for Content is officially open! Get started here.

How can I determine who clicked a UI action

Bushra Syed
Tera Contributor

Hi, 

I am wondering if it is possible to get the user information of whoever ran a specific UI action in the UI action being run. I need the user initials in my UI action script. I am not sure if this is possible, but if so does anyone know how to do it?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can check in the onSubmit client script which UI action got clicked

you can get the logged in user's sys_id in client script which tells you who clicked it

Identifying UI Action Clicked (The Right Way)

Regards
Ankur

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

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can check in the onSubmit client script which UI action got clicked

you can get the logged in user's sys_id in client script which tells you who clicked it

Identifying UI Action Clicked (The Right Way)

Regards
Ankur

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

Hi,

How can I get the sysid?