Friday, September 21, 2018

Redirect the user to the Home Dashboard

A NetSuite script developer would like to redirect users to the Home Dashboard whenever a task/process is finished.

The script below will redirect the user to the Home Dashboard after submitting a record.
 
function redirectToHome(type) {
nlapiSetRedirectURL('TASKLINK', 'CARD_-29');
}

 
This script is a User Event script that can be deployed on the After Submit function of any record. However, it can also be used on other script types like Suitelets and Portlets.

1 comment: