cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are working to address an issue with subscription email notifications. In the meantime, be sure to check your favorite boards for new topics.

How to use a variable in an infotable query

AndyHilton
12-Amethyst

How to use a variable in an infotable query

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"
}
};

1 ACCEPTED SOLUTION

Accepted Solutions

Figured it out.

 

Just enter server after "value": without the double quotes.

Example:

var query =
{
"filters":
{
"type": "EQ",
"fieldName": "Server",
"value": server
}
};

View solution in original post

1 REPLY 1

Figured it out.

 

Just enter server after "value": without the double quotes.

Example:

var query =
{
"filters":
{
"type": "EQ",
"fieldName": "Server",
"value": server
}
};

Top Tags