- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Uthman ,
Where do you want to auto populate Native view or catalog item?
You can set default value to:
javascript: gs.getUserID();
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Set the Default Value to javascript:gs.getUserID()
.gs.getUserID() gets the Sys ID of the currently logged-in user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Below approaches
1) Recommended - Default value in dictionary
javascript: gs.getUserID();
OR
2) If field is on form then you can use onLoad client script
g_form.setValue('opened_by', g_user.userID);
OR
3) Display business rule on your table
current.opened_by = gs.getUserID();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @Uthman
https://www.youtube.com/watch?v=8jvrvdx5F2Y
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
4 hours ago
Hi @Uthman ,
Where do you want to auto populate Native view or catalog item?
You can set default value to:
javascript: gs.getUserID();
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Set the Default Value to javascript:gs.getUserID()
.gs.getUserID() gets the Sys ID of the currently logged-in user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Below approaches
1) Recommended - Default value in dictionary
javascript: gs.getUserID();
OR
2) If field is on form then you can use onLoad client script
g_form.setValue('opened_by', g_user.userID);
OR
3) Display business rule on your table
current.opened_by = gs.getUserID();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader