Modify journal field entries?

gaidem
ServiceNow Employee
ServiceNow Employee

I'm looking for a way to modify and/or delete journal field entries. I started by creating a reference field to the task on the sys_journal_field table. I was then able to add it as a related list. However any modifications to the text did not reflect in the activity log. Also deleting the entry didn't remove it from the activity log.

Does anyone know of a way to achieve what I'm after?

12 REPLIES 12

Not applicable

I built a couple of ACL's and it still not working.
type = record, operation = read, name = Record History (sys_history_set) - none, role = discovery_admin
type = record, operation = read, name = Record History (sys_history_set) - *, role = discovery_admin
Can you tell what i am doing wrong from this?


The glide.history.role property give access by role to the history of a record.

But I do have the same issue has you, it seems that something is preventing the system to unlock the History - List submenu.

According to the UI Macro code history_context which is responsible for showing the List menu entry, the following condition should be fullfilled:
- table is audited
- user has read access to sys_history_set
- user has read access to sys_history_line

Only read access rule exist on sys_history_line with a specific script condition(above) that I was not able to fully understand. Any comments to understand that rule in the context of the history menu entry is welcome.


answer = false;
try {
if (parent != null)
answer = true;
} catch (e) {
}

if (answer == false && !current.set.isNil()) {
var xx = new GlideRecord(current.set.table);
if (xx.get(current.set.id)) {
if (xx.canRead() && xx[current.field].canRead())
answer = true;
}
}


Deactivating the ACL do the trick and anyone with role within glide.history.role can then have access to both menu entry. However I'm not sure it's the right way to do it.



Mark Stanger
Giga Sage

I just created a much simpler way to do this and posted the solution at ServiceNowGuru. Hit the link for details...

http://www.servicenowguru.com/system-definition/remove-activity-log-journal-entries/