- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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();
}
More details: https://docs.servicenow.com/bundle/vancouver-api-reference/page/app-store/dev_portal/API_reference/G...
If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL
Best Regards,
Prashant Kumar (LearnIT)
YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant
Blog LearnIT: https://medium.com/@LearnITbyPrashant
Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/
ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635
- 2,489 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
