how to set incident caller dynamically as current user?

Snow User5
Kilo Contributor

how to set incident caller dynamically as current user?

1 ACCEPTED SOLUTION

Hi,

something like this

Created by [IS] javascript:gs.getUserName()

find_real_file.png

Regards
Ankur

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

View solution in original post

6 REPLIES 6

dmathur09
Kilo Sage
Kilo Sage

Hi,

Kindly create a onLoad Client script and put the script as g_form.setValue('caller_id','g_user.userID);

Regards,

Deepankar Mathur

Raghu Ram Y
Kilo Sage

Hi @Snow User 

No need to use "Client Script", servicenow is providing OOB Feature..so use it..

 

1. Open the incident form.

2. Right click on the Caller field and select Configure Dictionary

find_real_file.png

 

3. Go to Default value section and follow like below screenshot.

 

Hello @Snow User 

Thanks for marking my response as helpful, if it  solves your issue then please mark it as correct so that it will be helpful to the future readers.

Ankur Bawiskar
Tera Patron
Tera Patron

@Snow User 

you can use default value in the dictionary of caller_id

javascript: gs.getUserID();

Regards
Ankurr

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