- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 06:08 AM
How to list object properties on server side scripting that in compatibility mode(ES3)?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 06:20 AM
var gr = new GlideRecord('sys_user_group');
gr.addQuery('sys_id', 'ba3974211b0a270006232fcdee4bcb93'); // give the sys_id here
gr.query();
if(gr.next()){
gs.info('gr is the object');
gs.info(Object.getOwnPropertyNames(gr));
}
Hint: Make sure you cross check Javascript API when you have to do something new in SN.
Please mark reply as Helpful/Correct, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 06:20 AM
var gr = new GlideRecord('sys_user_group');
gr.addQuery('sys_id', 'ba3974211b0a270006232fcdee4bcb93'); // give the sys_id here
gr.query();
if(gr.next()){
gs.info('gr is the object');
gs.info(Object.getOwnPropertyNames(gr));
}
Hint: Make sure you cross check Javascript API when you have to do something new in SN.
Please mark reply as Helpful/Correct, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 06:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2020 06:29 AM
I specified wrong sysid, so I fix correct sysid, then working.
Thank you.