- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 04:24 AM
Hi Folks,
So I want to add 2 comments to a case from a script include. Below is the code:
One additional comment is getting added , which is combination of below three comments which I am adding separately. How can I fix this? I don't want the combined comment.
Any suggestion would be appreciated!.
Thanks & Regards.
Diksha
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 05:02 AM
Please share all logic, not just the script include... How is it called?
Next to that: comments are added and written to the sys_journal_field table. If you want to add two separate comments to the same ticket (process wise that doesn't really make sense), you will have to have 2 updates to the record to update them to the sys_journal_field table and with that, show them in the activity log.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 04:57 AM
where have you written this script? is this a business rule?
what type of business rule?
what's your business requirement?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 05:02 AM
Please share all logic, not just the script include... How is it called?
Next to that: comments are added and written to the sys_journal_field table. If you want to add two separate comments to the same ticket (process wise that doesn't really make sense), you will have to have 2 updates to the record to update them to the sys_journal_field table and with that, show them in the activity log.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 06:04 AM
Yeah, thank you for the insight. I did 2 updates on record. It worked as expected now.
Thank you for helping!