Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

why unsubscribe and preference link is not showing in notification

Community Alums
Not applicable

Hi All,

 

I have created a email script notification to set subject and body based on some condition. I have written subject and body both in email script because of that it is not showing. I have given the template as OOB unsubscribe and preference only.

 

How to add the link 

sangeetha10_0-1679677637264.png

Anyone can help me on this

3 REPLIES 3

Community Alums
Not applicable

Hi @Community Alums ,

Administrators can add unsubscribe links to notifications so that users can stop receiving particular email messages.

Note: The base system notifications include unsubscribe and notification preferences links.
The system offers two types of macros to create unsubscribe links.
  • An unsubscribe link that creates an email message to the instance.
  • An unsubscribe link that opens the notification preferences for the user on the instance.
Available unsubscribe macros
Unsubscribe type Macro used Description Available parameters

Unsubscribe by email

(Unauthenticated)

${NOTIF_UNSUB} The system generates an HTML mailto hyperlink. When users click the link, their browser or email client creates a pre-formatted unsubscribe email message to the instance. link_text: specify the text to display as a link within quotation marks.

Unsubscribe by notification preferences

(Authenticated)

${NOTIF_PREFS} The system generates an instance link directly to the notification preferences for this notification type. link_text: specify the text to display as a link within quotation marks.

 

SandeepDutta_4-1679678344399.png

Here’s an example of what users will see.

SandeepDutta_5-1679678377501.png

 

Community Alums
Not applicable

Hi @Community Alums 

I have tried this method by adding this in notification body /Email layout but it is not working. Still it is not showing both the link in my notification

DeepiP
Tera Contributor

Will ${NOTIF_UNSUB} work in calendar type notification? Need help on this.