Auto Populate a logged in users account?

tamarasanso
Tera Contributor

Hello everyone, 

 

What table should you use to auto populate a logged-in user's account for a reference field?

1 ACCEPTED SOLUTION

Chaitanya ILCR
Kilo Patron

Hi @tamarasanso 

 

open the dictionary of the field 

ChaitanyaILCR_0-1749861450995.png

reference table should be sys_user

ChaitanyaILCR_1-1749861493913.png

open the default value section of the dictionary and select values as highlighted and save the record

ChaitanyaILCR_2-1749861547683.png

 

 

if it a variable that you are referring to 

open the variable record and select the reference table as sys_user

ChaitanyaILCR_3-1749861688847.png

and to populate the logged in user put below line in the default value and save the record

javascript:gs.getUserID()

ChaitanyaILCR_4-1749861843328.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

 

View solution in original post

2 REPLIES 2

Chaitanya ILCR
Kilo Patron

Hi @tamarasanso 

 

open the dictionary of the field 

ChaitanyaILCR_0-1749861450995.png

reference table should be sys_user

ChaitanyaILCR_1-1749861493913.png

open the default value section of the dictionary and select values as highlighted and save the record

ChaitanyaILCR_2-1749861547683.png

 

 

if it a variable that you are referring to 

open the variable record and select the reference table as sys_user

ChaitanyaILCR_3-1749861688847.png

and to populate the logged in user put below line in the default value and save the record

javascript:gs.getUserID()

ChaitanyaILCR_4-1749861843328.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

 

tamarasanso
Tera Contributor

Thank you, Chaitanya, for all of your help. I was able to resolve my issue. I appreciate your time!