incident management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 10:59 AM
Caller reference field should be auto populated with the logged in user name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 11:02 AM
@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 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 11:03 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 11:03 AM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2025 11:04 AM