RESTMessageV2 - setQueryParameter(String name, String value)

Append a parameter to the end of the request URL with the form name=value.

For example, the code setQueryParameter("sysparm_query","active=true^ORDERBYnumber^ORDERBYDESCcategory"); appends the text sysparm_query=active=true^ORDERBYnumber^ORDERBYDESCcategory to the request URL.

Table 1. Parameters
Name Type Description
name String The name of the URL parameter to pass.
value String The value to assign the URL parameter.
Table 2. Returns
Type Description
void
var sm = new sn_ws.RESTMessageV2();
//Set up message, including endpoint and authentication
sm.setQueryParameter("sysparm_query","active=true^ORDERBYnumber^ORDERBYDESCcategory");