Skip to content

Instantly share code, notes, and snippets.

@nancystodd
Last active April 24, 2020 19:04
Show Gist options
  • Save nancystodd/90f4bb8715ffe78603eaf34e64195b5b to your computer and use it in GitHub Desktop.
Save nancystodd/90f4bb8715ffe78603eaf34e64195b5b to your computer and use it in GitHub Desktop.
Glide Record Print all Properties and Values Example
// This is just a handy snippet I use when troubleshooting glide records
// in a background script to quickly see all the properties and values of a glide record
// Just change the table name and query for the glide record to test
var gr = new GlideRecord("<your_table_name>");
gr.addQuery("<field_name>", "<value>");
gr.query();
while (gr.next()) {
for (var prop in gr ){
gs.print(prop + ":" + gr[prop] );
}
gs.print("\n");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment