GlideSystem - setRedirect(Object URI)

Sets the redirect URI for this transaction, which determines the next page the user will see.

Table 1. Parameters
Name Type Description
URI Object URI to set as the redirect
Table 2. Returns
Type Description
void

Scoped equivalent

To use the setRedirect() method in a scoped application, use the corresponding scoped method: Scoped GlideSystem - setRedirect(Object URI).

This example redirects the user to a particular catalog item, and passes along the current email as a parameter.

gs.setRedirect("com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=d41ce5bac611227a0167f4bf8109bf70&sysparm_user=" 
+ current.sys_id + "&sysparm_email=" + current.email)