- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 02:23 AM
Hi All,
I am running an ATF test step using "Run Server Side Script".
I get the below error when I run the script from our application scope (Not from Global scope):
TypeError: Method "ScopedGlideRecord" called on incompatible object.
The statement where the error is given: var gr1 = GlideRecord('sys_atf_test_result');
I have modified the Application Access setup for the table sys_atf_test_result but I still get the error.
Is there a way I can run the script from our local scope? The version of our ServiceNow instance is San Diego.
Thanks Donald Jayawardena
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 05:26 AM - edited 03-08-2023 05:27 AM
Update the line var gr1 = GlideRecord('sys_atf_test_result'); as such:
var gr1 = new GlideRecord('sys_atf_test_result');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 05:26 AM - edited 03-08-2023 05:27 AM
Update the line var gr1 = GlideRecord('sys_atf_test_result'); as such:
var gr1 = new GlideRecord('sys_atf_test_result');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023 02:16 PM
Thanks Lazlo for your answer.
Donald Jayawardena