Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Specialized Areas/ATF Steps/Count table records/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
var gr = new GlideAggregate('incident');
gr.addAggregate('COUNT');
gr._query();
if (gr.next()) {
return gr.getAggregate('COUNT'); // pass the step
if (gr.next()) {
stepResult.setOutputMessage("Successfully Calculated the Count");
return gr.getAggregate('COUNT'); // pass the step
} else {
stepResult.setOutputMessage("Failed to Count");
return false; // fail the step
Expand Down
Loading