How to get the user sysid in ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2017 08:48 AM
Hi all,
Is it possible to get the sys id of the user that clicked on a specific ui action?
For instance, store that sysid value and later use it to send a notification to the same user.
Any thoughts on this?
Thanks,
António

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2017 08:51 AM
You can trigger an event in the UI action and pass the usr sys_id that way:
gs.eventQueue("event.name", current, gs.getUserID(), gs.getUserName());
Cheers,
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2017 09:46 AM
Hey Tim,
Thank you for your answer. It is a possible solution but i believe my needs are a bit more complex.
The ui action will start some different processes, including some transform maps. And i would like to send a notification for the user that started the process (clicked on the ui action) once it has finished. So i'm guessing that i should store that sysid somewhere so i can't later grab it in a transform script and send an email to the original user.
Any way to do this?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2017 10:01 AM
You'll just need to pass that value (sys_id of the user) into each of your functions/processes. Depending on how you're triggering your next process (Business Rules?) you should be able to pass that value on to the next function.
Tim