So here's where I'm at right now. I'm testing out the functionality of Query and just making sure it works before I write any more complicated code. Unfortunately, my output seems to be null? I don't know if it's because my "class" is incorrectly labeled or what, but I'm getting nothing for the output.
JavaScript
update:function(element,options){try{varqueryCond="computer_id = '56' AND service_id = '236'";SPICEWORKS.data.query({serviceResult:{class:'Service Installations',include:'service_installations',conditions:queryCond}},function(resultHash){varmyService=resultHash['serviceResult'];// Store query result in a varmyService.each(function(myService){element.innerHTML='Service state is '+myService.state;});});}catch(err){alert(err);}}