Record Producer Script - How to find userid of person filling out record producer?

Staxed
Giga Guru

I am trying to add into the script section of my record producer a way to assign the name of the person filling out the record producer as the assigned to person for the incident it creates.  I think I'm overthinking this and can't seem to figure out how to do it.  Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Nia McCash
Mega Sage
Mega Sage

current.assigned_to = gs.getUserID();

View solution in original post

3 REPLIES 3

Nia McCash
Mega Sage
Mega Sage

current.assigned_to = gs.getUserID();

I knew it would be something simple, I'm sitting here trying to code in variable with javascript and stuff and it's as simple as this.  Thanks!

Marcin Skiba
Tera Contributor

Hi

 

To access user details you can use: 

 

from Client Script:

g_user.userName

g_user.userID

 

or from Server Script:

gs.getUserName()
gs.getUserDisplayName()
gs.getUserID()