I need to know how to use a variable in an infotable query.
For example: (In this example I want to pass the server variable into the query.
var server = "MYSERVER01";
var query =
{
"filters":
{
"type": "EQ",
"fieldName": "Server",
"value": "server"
}
};
Solved! Go to Solution.
Figured it out.
Just enter server after "value": without the double quotes.
Example:
var query =
{
"filters":
{
"type": "EQ",
"fieldName": "Server",
"value": server
}
};
Figured it out.
Just enter server after "value": without the double quotes.
Example:
var query =
{
"filters":
{
"type": "EQ",
"fieldName": "Server",
"value": server
}
};