GlideScriptRecordUtil returns unchanged field

kente
Tera Guru

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?

 

2 REPLIES 2

Gurpreet07
Mega Sage

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

Sadly that did not solve it