Skip to content

Instantly share code, notes, and snippets.

@eduglez
Created January 21, 2020 17:59
Show Gist options
  • Save eduglez/dab3171ad216417d290691df0c813f71 to your computer and use it in GitHub Desktop.
Save eduglez/dab3171ad216417d290691df0c813f71 to your computer and use it in GitHub Desktop.
Gets ServiceNow server object properties
var category2 = new GlideHTTPResponse();
gs.print(typeof GlideHTTPResponse);
gs.print(typeof category2);
var output = '';
var property;
for (property in category2) {
try{
output += property + ': ' + category2[property]+'; \n';
}catch(err){
output += property + ':' + ' NO CONSTRUCTOR';
}
}
gs.print(output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment