Last active
April 24, 2020 19:04
-
-
Save nancystodd/90f4bb8715ffe78603eaf34e64195b5b to your computer and use it in GitHub Desktop.
Glide Record Print all Properties and Values Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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