Comments/Worknotes don`t show up in a journal stream when inserted programatically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2014 03:59 AM
Hello,
when I create a new journal entry record by directly writing to the "sys_journal_field" table, I don`t see any updates in the journal/activity stream section of a ticket.
The code I have put together for this as follows:
var gJournalEntry = new GlideRecord("sys_journal_field")
gJournalEntry.initialize();
gJournalEntry.name = "task";
gJournalEntry.element = "comments"; ( or work_notes )
gJournalEntry.element_id = "incident_sysid";
gJournalEntry.value = "My Comment/Worknote value";
gJournalEntry.insert();
any ideas why it does not show up ??
Cheers
Maros

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2014 05:28 AM
Hello Maros Takac
Please check the below article for more info on this.
http://www.servicenowguru.com/system-definition/remove-activity-log-journal-entries/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2016 12:34 AM
Hi Maros,
I have the same issue, did you find the solution for this?
Regards
Yogish