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

Alikutty A
Tera Sage

Hello,

It might be the business rule which adds the work notes but it is triggered by the user who initiate the update. This is how system behaves OOB. If you need to generate the work note as a different user, you could make a REST API call to add work notes on the other table from your business rule. While making a REST call, you could select the user who would be authorizing the update(eg: System User) and hence the name of this user would be displayed on the work notes.

Thanks!