
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2018 10:11 PM
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.
Thank you.
Regards,
Raph
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2018 11:21 PM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2018 11:22 PM
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!