Skip to content

Instantly share code, notes, and snippets.

@wave-inguane
Created August 3, 2021 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wave-inguane/3c084a3e4ddd9d86dacf6b77f6455d74 to your computer and use it in GitHub Desktop.
Save wave-inguane/3c084a3e4ddd9d86dacf6b77f6455d74 to your computer and use it in GitHub Desktop.
GlideRecord
var queryString = "priority=1^ORpriority=2";
var now_GR = new GlideRecord('incident');
now_GR.addEncodedQuery(queryString);
now_GR.query();
while (now_GR.next()) {
gs.addInfoMessage(now_GR.getValue('number'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment