GlideScriptRecordUtil returns unchanged field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2018 12:17 AM
Hi,
When using the following on incident or sc_req_item, description field is always marked as changed, even though it is unchanged.
var gru = GlideScriptRecordUtil.get(current);
gs.addErrorMessage("fields " + gru.getChangedFieldNames());
If i check for changes in current vs previous the field is NOT changed.
I have tried disableing all BR, client script and UI policies on incident/sc_req_item and task, without any luck. There isen't any configuration done to the field, and if i try to watch the field, i dont see any changes either.
On my own developer instance, this doesnt happen.
Have anybody else experienced this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2018 01:31 AM
If the type of description is html field then there's some issue with html sanitizer and same needs to be deactivated for this particular field.
https://docs.servicenow.com/bundle/kingston-platform-administration/page/administer/security/task/t_EnSanitizIndFlds.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2018 01:58 AM
Sadly that did not solve it