How do i remove user's name from additional comments in a notification sent on email?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2022 05:11 AM
Hi,
I cant fint any easy documentation on how to edit user's name on additional comment, when its sent with a notification. Is it possible to hide or remove user's name?
I can see that we are using an Email-template on the notification.
Hopefully someone can help me with this problem. Thank you!
Best regards,
Long
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2022 05:23 AM
Hi Long,
I'm not sure what is the business case you are trying to edit the additional comment user name. As per OOB behavior, it will display gs.getUserID() full name. This is applicable for manual and automated update.
Regards,
Suresh
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2022 05:44 AM
Hi
We dont want the full name to appear in the notification. Do you know if its possible to remove the display of full name on an additional comment when the notification is sent on email?
Best regards,
Long
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2022 05:52 AM
Hi Long,
As mentioned out of the box the full name and timestamp is always included in the journal entry/entries.
I'm not aware of any out of the box method to hide these.
However it is of course quite possible if you do it yourself.
There is probably a mail script in your email notification/template that retrieves the latest comment.
You could make an alternative mail script that for example;
1) Still uses current.comments.getJournalEntry(1) but as this is a string you can then use RegEx to remove the name from this string - and then template.print this into your notification
2) Or alternatively query the sys_journal_field yourself based on the element_id and name of the table - and take just the value from that record which contains the comment itself.
Kind regards,
Fernando
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2022 06:12 AM
Hi
Im not sure how to make those examples. We just selected fields variables that looks like this: Additional comments: ${comments}. There is no possibility to configure what we like to display with the additional comment.
Is it possible for you to paste some screenshots? Or a detailed description? It would be much appreciated.
Best regards,
Long