journalEntry/Additional Comments date and time format.

Maxwell3
Kilo Guru

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?

6 REPLIES 6

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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,