how to get setForceUpdate functionality in scopped app

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2017 11:07 AM
How do I recreate this functionality in a scoped app? Not sure why it was removed but I need to trigger other business rules form a ui action without updating the record.
Labels:
- Labels:
-
Scoped App Development
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2021 11:33 AM
Better yet, you can use GlideQuery, this way:
// GlideRecord's "gr.setForceUpdate(true)" can't be called from scoped apps.
// Use GlideQuery instead.
new global.GlideQuery(TABLE_NAME)
.forceUpdate()
.where(FIELD_NAME, VALUE)
.update();

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-10-2023 10:56 AM
Confirmed. This works.