Where does the GlideScriptRecordUtil come from?

Wendy12
Tera Contributor

Where does the GlideScriptRecordUtil come from?

Is it a hidden Script Include? (I'm guessing not).

Is it included in a specific Application? If so, which one?

or Is that an older name and it now is called something else?

 

Thanks

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

this is not directly accessible to use as an admin.

This is similar to many other scripts which we cannot access like GlideappVariablePoolQuestionSet etc

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

this is not directly accessible to use as an admin.

This is similar to many other scripts which we cannot access like GlideappVariablePoolQuestionSet etc

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Sai Kumar B
Mega Sage
Mega Sage

@Wendy 

1. GlideScriptRecordUtil is an API to get changed/modified fields for the current record

2. It's not a script include

3. 'GlideScriptRecordUtil' is not allowed in Scoped Apps, It's applicable only for Global scope(Global applications),

4.  For scoped application, the alternative is  "getChangedFieldNames"

Regards,
Sai Kumar

 

Community Alums
Not applicable

Hi Sai @Sai Kumar ,

How we can use the getChangedFieldNames in the place of GlideScriptRecordUtil?

Just replacing the word is enough?

Regards,

Sirraj

@Sriraj 

You can refer to this - http://snamigos.blogspot.com/2017/11/how-to-get-changed-or-modified-fields.html

You can also use GlideScriptRecordUtil in the scoped app as per the below

Use GlideScriptRecordUtil in Global script include and set accessible from as all application scopes and call the script include in your server-side scripts