Regarding chat blinking icon style configuration

nrupadadesh
Kilo Explorer

Hello,

 

I have a chat blinking icon style configured on Number field on Task table (which we don't want to modify as its linked to many other things in our instance).

Its value is like: It's visible only to the assigned to user of the record when the record is not updated by the system/assigned to user & record is active.

If above condition is not true, then the style icon would disappear.

 

I now want it to get disappeared also when the assigned to user blankly saves the record (without any field value changes). Kindly help me achieving this asap.

 

Please note: OOB in ServiceNow, blankly saving the record is not considered as an update.

 

Thanks!

1 REPLY 1

RaghavSh
Kilo Patron

var fields = GlideScriptRecordUtil.get(current);
var changedFields =fields.getChangedFieldNames(); 

 

This will return you array list, you can convert it to toString() and check the length.

if length==0, you can write your logic accordingly.

 

you may need to add this logic in script include.

 


Raghav
MVP 2023