Quantcast
Channel: Spiceworks Community
Viewing all articles
Browse latest Browse all 18

Where is the Service State in SpiceWorks API?

$
0
0

Thank you much! That helped a ton, but now I've hit an error using the Query command. Here's the relevant code:

var compName = 'licensesvr1';
var queryCond = "name = '" + compName + "' AND service_id = '236'";
SPICEWORKS.data.query( {
    serviceResult: {
      class: 'ServiceInstallation', include: 'devices', conditions: queryCond
    }
  }, function (resultHash) { ... }
);

This returns to me an error:

exception: SQLite3::SQLException: no such column: name: SELECT * FROM "service_installations" WHERE (name = 'licensesvr1' AND service_id='236') ORDER BY id ASC

As far as I understood, including "devices" in the search list would let me search in the columns there?


Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>