Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

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

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.