incident management

FaisalH
Giga Contributor

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

4 REPLIES 4

PratikshaKate
Tera Contributor

@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
Tera Patron

Ho @FaisalH 

 

You want on Portal or native view?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Omkar Kumbhar
Mega Sage
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.