GlideURI - get(String name)

Returns the specified parameter.

Table 1. Parameters
Name Type Description
name String The parameter name.
Table 2. Returns
Type Description
String The URI for the specified parameter.
var gURI = new GlideURI();
gURI.set('sysparm_query', 'priority=2^active=true' );
var fileString = gURI.get('sysparm_query');
gs.info(fileString);

Output:

priority=2^active=true