Updated By Field should show Name instead of ID
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 03:09 AM
Hello Everyone,
I want to update the "First name Last name" in the Updated By field (sys_updated_by OOTB) instead of ID.
I tried creating a Onbefore Business rule which is not working properly.
(function executeRule(current, previous /* previous */ ) {
var gr = new GlideRecord('sys_user');
if (gr.get('user_name', current.sys_updated_by)) {
current.sys_updated_by = gr.name;// Updated by field OOTB
}
})(current, previous);
Thanks
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2025 08:37 PM
Hi, may I know if this has been solved? Need to solve the same 😄 Many thanks!