Finding Custom Site ID

(imported topic written by SystemAdmin)

Aloha everyone,

Today I am trying to find a way to find the Site ID of a custom site. When I open my console and set the columns to show the ID next to the sites (1 is BES Support) the column is blank for custom sites that have been made in-house. The reason I ask is that I am trying to use the Platform API to gather information on fixlets inside a custom site. Specifically I’m using the Load() function under the BESAPI.FixletMessage section. The problem is that the Load() function takes in the site ID, fixlet ID, username, and password. The last three I can find, the site ID for custom sites is what I cannot find.

Thanks for all your guys/gals help!

Ilithis

(imported comment written by NoahSalzman)

I’ve never done this myself, but I googled for “load() custom site bigfix” and this was the top hit:

http://forum.bigfix.com/viewtopic.php?id=7453

:slight_smile:

(imported comment written by SystemAdmin)

Thanks Noah, but I already read that thread. My Master Action Site doesn’t have a site ID. I tried using Lee Wei’s relevance and it tells me id isn’t an operator. As for the SQL query, I want to avoid using that if possible, I was hoping it was going to be easier than resorting to querying the database.

(imported comment written by NoahSalzman)

Ah… sorry, then. Let’s see if someone else, who has done this before, can chime in.

(imported comment written by NoahSalzman)

“I tried using Lee Wei’s relevance and it tells me id isn’t an operator.”

Did you try that in the Client Debugger or the “Presentation Debugger” from the Console’s debug menu? The latter is for Session Relevance (queries against the database).

(imported comment written by SystemAdmin)

Oops…yeah I was using the Client Debugger, that would have been my problem. After querying the database Lee Wei’s actionscript did work. I got a huge number as a result.

Thanks a lot Noah!