GlideURI - set(String name, String value)

Sets the specified parameter to the specified value.

Table 1. Parameters
Name Type Description
name String The parameter name.
value String The value.
Table 2. Returns
Type Description
void
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