journalEntry/Additional Comments date and time format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2019 08:44 AM
I am displaying "additional comments" on email notifications.
I have the following requirements:
- Hide the user names
- Re-format the date and time to "standard" AM/PM to MM DD YYYY.
So far, I managed to hide the user names by using a regular expression. I also managed to re-format the date and times on other fields(other than additional comments), I just can't figure out how to combine the two (hide & re-format) on additional comments field.
Can anyone point me in the right direction?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2019 08:45 PM
Hi,
So you want to print all the comments associated for that record?
you can query sys_journal_field with following and then iterate over
Name - incident
element - comments
element ID - record sys_id
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2019 11:41 AM
Hello Bankur,
I am already printing all the comments for that record using"getJournalEntry()". Now I want to be able to print all the times associated with the records.
Thank you,