Quantcast
Viewing all articles
Browse latest Browse all 18

Where is the Service State in SpiceWorks API?

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

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

This returns to me an error:

SQL
exception:SQLite3::SQLException:nosuchcolumn:name:SELECT*FROM"service_installations"WHERE(name='licensesvr1'ANDservice_id='236')ORDERBYidASC

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>