Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
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
}
};