SNOW-CAD • Practice Test 3
Free SNOW-CAD practice test — 10 questions with explanations. Set 3. No signup required.
Refer to the exhibit. A developer created this Script Include to be used as a REST API endpoint. However, when calling the API, the response is empty. What is the most likely reason?
Refer to the exhibit.
Script Include: getIncidents.gs
var getIncidents = Class.create();
getIncidents.prototype = Object.extendsObject(AbstractAjaxProcessor, {
getOpenIncidents: function() {
var gr = new GlideRecord('incident');
gr.addQuery('active', true);
gr.query();
var result = [];
while(gr.next()) {
result.push({
'number': gr.getValue('number'),
'short_description': gr.getValue('short_description')
});
}
return result;
}
});