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.

Field update count

mr18
Tera Guru

Created custom integer field on incident whose default value is 0

If any of the field other than work notes/comment is updated then the field count should increase by 1.

3 REPLIES 3

Arav
Tera Guru

Hi,

The OOB field "Updates [sys_mod_count]" does this already and it will be available on all tables.

Please explore and use that as needed.

Thanks,

Arav

True but that also count any update on comments/work notes. I want to exclude work notes and comments field

Arav
Tera Guru

Please check the community post below on the way to detect changes via a BR. It talks about an article on ServiceNow Guru to handle changes in Global scope and proposes an alternate method for other scopes.

https://community.servicenow.com/community?id=community_question&sys_id=33a68765db1cdbc01dcaf3231f961950

Using the logic, you may want to write a BR on incident table, add an exclusion clause if changes are only to work notes / comments and, update the new field accordingly.

On a related note, is there a strong business reason to pursue this integer field approach to track changes ?