Skip to content

Instantly share code, notes, and snippets.

@nancystodd
Last active February 5, 2023 21:17
Show Gist options
  • Select an option

  • Save nancystodd/c29afb69ef78ad0948a807dfb01bbadf to your computer and use it in GitHub Desktop.

Select an option

Save nancystodd/c29afb69ef78ad0948a807dfb01bbadf to your computer and use it in GitHub Desktop.
Make ServiceNow Glide Object Visible
var fieldTypes = new GlideRecord('sys_glide_object');
fieldTypes.addQuery('sys_id', 'IN', ['sys_id_1', 'sys_id_2']);
fieldTypes.setValue('visible', true);
fieldTypes.updateMultiple();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment