Can you change the Name of User to 'System' in Work Notes?

Raphael Dizon
Mega Expert

Hi,

Is it possible to change the Name displayed in Work notes to for example 'System' because I have a Business Rule that Auto-populates the work notes of another table whenever an Incident is closed.

I don't want that user's name who Closed the Incident be displayed in the Work notes, instead 'System' will be the one displaying in the work notes as it is auto-populated by a business rule and not a user.

 

find_real_file.png

Thank you.

Regards,

Raph

1 ACCEPTED SOLUTION

rahulpandey
Kilo Sage

Hi,

You can use the impersonation script to change the user who updated it.

var myUser = gs.getSession().impersonate("62826bf03710200044e0bfc8bcbe5df1");// sys_id of user who you want to be static or system.
// your business rule goes here
gs.getSession().impersonate(myUser);

View solution in original post

5 REPLIES 5

Ct111
Giga Sage

Hi ,

 

You can manually go and remove the entry and change it to System if needed

 

https://yourinstance.service-now.com/sys_journal_field_list.do?sysparm_nostack=true

 

Once you open the link  click on gear icon and take out   created by  in that you will see all enteries created by user  you can double click on it and change to system if needed

 

Note : create a script if needed for bulk changes

 

Mark my ANSWER as CORRECT and HELPFUL if it helped without fail

rahulpandey
Kilo Sage

Hi,

You can use the impersonation script to change the user who updated it.

var myUser = gs.getSession().impersonate("62826bf03710200044e0bfc8bcbe5df1");// sys_id of user who you want to be static or system.
// your business rule goes here
gs.getSession().impersonate(myUser);

Thank you rahulpandey, this worked

On which table we have to write this BR?