We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d284c5 commit fb7bc52Copy full SHA for fb7bc52
Specialized Areas/ATF Steps/Count table records/script.js
@@ -3,9 +3,9 @@
3
var gr = new GlideAggregate('incident');
4
gr.addAggregate('COUNT');
5
gr._query();
6
- if (gr.next()) {
7
- return gr.getAggregate('COUNT'); // pass the step
+ if (gr.next()) {
8
stepResult.setOutputMessage("Successfully Calculated the Count");
+ return gr.getAggregate('COUNT'); // pass the step
9
} else {
10
stepResult.setOutputMessage("Failed to Count");
11
return false; // fail the step
0 commit comments