How to replace GlideScriptRecordUtil in Scoped applications ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2016 04:35 AM
We are developing a custom scoped application for PPM .
Requirement is to update a record feed of a project , when a new status update(using Status Updates -Related list ) record is created.
I have created the Table notification for the same and it is throwing me the following error when a new status update is created.
GlideScriptRecordUtil is not allowed in scoped applications
I did check and came to know business rule created by Table notification is causing this , Business rule script contains
function onBefore(current, previous) {
//This function will be automatically called when this rule is processed.
var gru = new GlideScriptRecordUtil.get(current)
var fieldsChanged = gru.getChangedFieldNames();
gs.eventQueue('live_feed.update', current, fieldsChanged.toString(), current.sys_mod_count);
}
Is there any replacement for this GlideScriptRecordUtil class in Scoped apps?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2017 02:23 PM
Thanks for sharing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2022 11:35 AM
I got this working by creating a global script include, available to all scopes, formatted like this:
/**
* provides the global GlideScriptRecordUtil utility to scoped applications
* @namespace
*/
var ScopedGlideScriptRecordUtil = {};
(function(){
ScopedGlideScriptRecordUtil.get = function(gr) {
return GlideScriptRecordUtil.get(gr);
};
})();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2022 01:55 PM
Hello.. I am new in this.. and found this page after I discovered the error 'GlideScriptRecordUtil is not allowed in scoped applications'.. I cloned a widget under a scoped app and the widget contains 'GlideScriptRecordUtil' to update the details of a record.. Am still not sure about the workaround for this. Can someone please help? Thanks