Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Need help in finding out how a field is getting updated

Rahul Talreja
Mega Sage

We have a custom field(True false type) on change form which is getting updated,
Initially it is set to false, when the change state changes from schedule -> Implement it get updated to true and when again  when state changes from implement to review it changes again to false .

We got a script in workflow which was setting value of this to false in second case(i.e from implement to review) but could not figure out from where this value is setting up to true when change moves from schedule to implement.

I checked BR, Client script, UI policies each and every in the script, checked all workflow related to change_request and every script in all of them, but couldn't find out from where the field is getting updated.
Can you please suggest more possible ways or place where I can check for this?
Thanks in Advance

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul
1 ACCEPTED SOLUTION

Matt102
Giga Guru

Hi,

My first thought would be watching the field.

On the Change form (UI16), alt click the custom field label, to bring up the context menu. Click 'Watch...', this should open up the Field Watcher. Run the steps that cause the field to change and review the Field Watcher output.

hth,matt

View solution in original post

9 REPLIES 9

If you click on the hyperlinked 'Save' it should take you to the action that is playing with the form/record values?

Does that give any more information?

Hi,

No that hyperlink is not opening anything, I tried checking for that, secondly I checked "Save" UI action button but it also doesn't seems to be containing anything which may affect this custom field.

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul

Hi,

Swapnils suggestion sounds a good way to go, to validate all your initial checks. As an addition to that, you could progress a chage record state via a gliderecord update, this setWorkflow false, and see if the custom field value changes:

gr.setWorkflow(false);

That may also help point to where the change is being made?

The only other thing I can think, given you didn't mention it, is that the field definition, in sys_dictionary, may have a caluclated value on it - you could check that (Record View Advanced).

hth,matt

Rahul Talreja
Mega Sage

Hi Matt,

I tried marking that field on watch, but it didnt opened the field watcher for me.
I tried clicking on spider icon too, but no window open up.

Can you please suggest what could be the reason.

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul

Swapnil Shirsik
Giga Guru

Hi, since the checkbox is getting updated based on the state/stage change, i think there could be a business rule or on change client script running on the change request table that is setting the value.

You can disable all the client scripts, business rule on change request table and on task table (these might be running on task table with when to run as task type is change request) in NON PRODUCTION instance. Please check if this helps.

 

If this information has helped you, please mark answer as helpful/correct.