How to update comments without mentioning the user name. It should be as system.

Sunny4
Tera Contributor

I have a requirement :

ticket is automatically closed via workflow activity with comments and closed notes. Now the comments should not updated by the current user. It should be displayed as System updated the comments.

1 ACCEPTED SOLUTION

Upender Kumar
Mega Sage

you can use

current.comments.setJournalEntry(your comments, 'system');

View solution in original post

2 REPLIES 2

Willem
Giga Sage
Giga Sage

If you add a timer it will do the Workflow steps after it as system (as it will run asynchronous):

find_real_file.png

 

Other option is add a script action and script it like they did here in a business rule (so use it in script block in workflow and make changes accordingly):

https://community.servicenow.com/community?id=community_question&sys_id=26498725db5cdbc01dcaf3231f96...

Upender Kumar
Mega Sage

you can use

current.comments.setJournalEntry(your comments, 'system');