incident management

FaisalH
Giga Contributor

Caller reference field should be auto populated with the logged in user name.

4 REPLIES 4

PratikshaKate
Kilo Guru

@FaisalH configure the field's dictionary entry. Specifically, set the "Default value" to javascript: gs.getUserID() and "Read only" to true

 

Mark my answer helpful if it helped you 🙂

Dr Atul G- LNG
Tera Patron

Ho @FaisalH 

 

You want on Portal or native view?

****************************************************************************************
Regards
Dr Atul G. - Learn N Grow Together ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
******************************************************************************************

Omkar Kumbhar
Mega Sage

Hello @FaisalH ,

Write a onload client script 

  • Name: Auto-populate Caller
  • Table: (e.g., incident)
  • Type: onLoad
  • Script:

(function executeRule(current, gForm, gUser, gSNC) {
if (gForm.isNewRecord()) {
gForm.setValue('caller_id', gUser.getID());
}
})(current, gForm, gUser, gSNC);

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.