URL redirection using a UI action

As part of a UI action, you can redirect a user to a URL.

For example, you can add links to a form or open a new record after it is created from a UI action.

To redirect a user to a URL from a UI action, use this syntax to define the redirect link:
action.setRedirectURL ( 'http://www.mysite.com/mypage.htm' ) ;
To direct a user to a record, use this syntax, where new_record is the variable name for the GlideRecord:
action.setRedirectURL (new_record ) ;