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

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

How to use a variable in an infotable query

AndyHilton
13-Aquamarine

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

ACCEPTED SOLUTION

Accepted Solutions
AndyHilton
13-Aquamarine
(To:AndyHilton)

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
AndyHilton
13-Aquamarine
(To:AndyHilton)

Figured it out.

 

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

Example:

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

Announcements


Top Tags