Add an unsubscribe link to an email message

You can add an Unsubscribe link to the bottom of any email body so users can unsubscribe from any subscription-based notification.

Before you begin

Role required: admin

Procedure

Paste the following code into an email notification or template:
template.print( '<a href="' + gs.getProperty('glide.servlet.uri') + 'unsubscribe.do?sysparm_notification=' + email_action.sys_id + '">Unsubscribe</a><br/>\n');