ServiceNow Things to Know 62: SetForceUpdate Application
Import
·
Jan 01, 2024
·
article
Have you ever had a requirement to force update a record without changing any field?
setForceUpdate function of ServiceNow allows you to do that.
Example below:
var rec = new GlideRecord('incident');rec.addQuery('number','INC0010112');rec.query();if(rec.next()){rec.setForceUpdate(true);rec.update();
}
View original source
https://www.servicenow.com/community/developer-blog/servicenow-things-to-know-62-setforceupdate-application/ba-p/2776746