How can I identify what script is causing a field to change on a record?

Wayne Richmond
Tera Guru

I'm using the 'state' field on a custom table that extends 'task'. I've got a Business Rule that changes the 'active' field to 'false' when the state field is '12' (the value). However, as soon as this happens, the 'state' changes to '3' automatically. This only appears to happen when 'active' changes from 'true' to 'false'. I've searched my Business Rules to see if there's another script that sets the 'state' to '3' when 'active' '=' or changesTo 'false' but I can't find one. Is there a log I can check to see what scripts are running and hopefully identify the culprit?

1 ACCEPTED SOLUTION

Chandu Telu
Tera Guru
Tera Guru

HI Wayne,



I think



Business Rule:task closer


View solution in original post

6 REPLIES 6

awessel
Kilo Guru

Depending on what version of SN you're on you may be able to right click the State field on the form and click "Watch field" (or something like that). This will enable the field watcher functionality. With that said, this functionality can be pretty hit or miss. It is worth a shot though.



My best guess is that this is being caused by the task active management business rule as that is triggered based on the Active flag. I forget the exact name of the business rule though.


Brad Tilton
ServiceNow Employee
ServiceNow Employee

I 1000 times agree with the use of field watcher and also think this may be caused by the business rule in question. Here's a blog post that may give you some more details on how that gets managed.



Understanding tasks table "closed" states


This is an amazing feature I never knew existed! It confirms chan's reply:



find_real_file.png


Chandu Telu
Tera Guru
Tera Guru

HI Wayne,



I think



Business Rule:task closer