Skip to content

Commit 9c37509

Browse files
authored
Create SQLChecker.js
1 parent 185759c commit 9c37509

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This example demonstrates how it is possible to see the generated SQL query without enabling the SQL debug feture in the navigator
2+
try {
3+
gs.trace(true);
4+
var incGr = new GlideRecord("incident");
5+
incGr.setLimit(10);
6+
incGr.orderByDesc("sys_created_on");
7+
incGr.query();
8+
// TODO any other logic comes here...
9+
}
10+
finally {
11+
gs.trace(false);
12+
}

0 commit comments

Comments
 (0)