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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

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