How can I customize the ${NOTIF_UNSUB} macro?

Sebastian Rein1
Kilo Contributor

Hello everyone,
my first question here in the forum refers to the macro ${NOTIF_UNSUB} which is used in the mail template "Unsubscribe and Preferences".
The template provides a hyperlink with a predefined mailto content like:

mailto:xxx@xxx.de?subject=Unsubscribe from "Incident Resolved"&body=Sending this email with the predefined content in the subject and body will unsubscribe you from the notification "Incident Resolved"%0D%0A%0D%0AUnsubscribe:{"id":"498162a20a0a0b4b00725fb9e5b6aeb3","token":"c797e62132"}

How can I edit the mailbody in this hyperlink?
Unfortunately I couldn't find the macro in the platform and the documentation didn't help me either.

thanks in advance

4 REPLIES 4

Christian_
Tera Guru

Hello, 

Product documentation : Email unsubscribe

Have you seen this one How to change the TO: address in ${NOTIF_UNSUB} or . ${mailto:} macro ?

Thanks Christian,
but the product documentation does not help.
It only says how to use it and not how to customize it.

Ok, the second link to the KB article didn't help either? 

Sesch
Mega Expert

Just a guess. try to define your own special code in the mail template, and dont use the ootb macro.

here you can define the subscribe link with code:

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/notification/task/t_Ad...

From there on you can define multiple other variables to fit your needs.

🙂