First C# program using BES API, where do find siteID?

(imported topic written by rkneal91)

trying to run a downloaded sample c# program, program complains when runs about the siteID.

the sample program had this in it, but sure this needs to be changed to our own siteID.

where can i find the siteID associated with our own installation. I go in the BES console and see Manage Sites->Master Action Site, but where can i find the ID so can plug into below?

thanks

bob

int siteID = -2147481618;

int fixletID = 32;

int action = 0;

(imported comment written by Lee Wei)

You can try this SQL against the BigFix database.

select siteid, sitename
from BFEnterprise.dbo.SITENAMEMAP
where sitename = ‘ActionSite’

Lee Wei