How to post additional comments/work notes as system not as user for change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 02:01 AM - edited ‎12-08-2023 07:15 AM
Hi All,
Currently, I am working on one service catalog that was created by the record producer, and on submit, it will create one change request for that catalog. Now, I am adding some default comments to that change request using the script of the record producer so user can see that after change request is created, like below:
current.comments = "example comments";
but it's posting this as a user, not as a system. I want to post these comments as a system.
I have also tried the below solution, but it didn't work.
current.comments.setJournalEntry('comments', 'system');
Please let me know if anyone has any other solutions to this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 02:21 AM
Hi @raj_purohit
That is not a good use case. If a user is adding the comments, then why you need this to appear as system? Happy to see the use case.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2023 02:42 AM
Hi @Dr Atul G- LNG ,
I think you misunderstood the question. The user is not adding comments here. These are some default comments that I want to add to change requests as a system. Currently, I am adding these comments from the script of the record producer, so when a change request is created, it will automatically add these comments as a system. The only problem is that currently it's going under user context, and I want it in system context.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2024 06:40 AM
Hi @raj_purohit,
I am also facing the same issue. We are creating a record using record producer and we to add few default comments to the record. If I am adding that in the script, it is not accepting the user parameter and always get added with the name of user who raised the request.
Did you get the solution for your query ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2025 03:51 AM
Hi Roshani,
did you find a solution to add the comments as system ? same requirement for case transfer as comments from previous case are posted with user who transfer the case. Not the one who actually made the comment, or at least system...
Thanks
Agathe