Is it possible to display only the most recent additional comment in the notification?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 12:45 AM
When creating a notification in the change request table, if I put ${comments} in the content, the last 3 additional comments will be displayed.
Is it possible to display only the most recent one?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 12:57 AM
Hello,
Yes it is possible.
Please check below link:
Working with comments and work notes in ServiceNow – moiaune.dev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 01:21 AM
Hello
Use the below options as per your requirements.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 02:31 AM
Hi @ayano ,
you need to use below script to get the latest journal entry from comments field.
current.comments.getJournalEntry(1);
Administrators can control the number of journal entries notifications include with the following system property .
Property | Label | Description |
---|---|---|
glide.email.journal.lines | Number of journal entries (Additional comments, Work notes, etc.) included in email notifications (-1 means all). | Specifies the number of entries from a journal field (such as Additional comments and Work notes) included in email notifications. A value of -1 includes all journal entries.
|