Notification script problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 12:50 AM
Hi I have written the below script :
Instead of giving clickable link that open mails it is printing that text :
Screen shot:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 01:00 AM
Hi @avinashdubey103 ,
It's because this is treated as a string which is the content of label
"<div><label style='color: #324450;'> ${mailto:mailto.approval.accept}</label> <label style='color: #324450;'>${mailto:mailto.rejection.accept}</label></div>"
Look into this article: Solved: adding a mailto link in Description section of Cat... - ServiceNow Community
Solved: mailto email template - ServiceNow Community
It seems like mailto is used as a link (<a> tag will do), not as a content of <label>, <p>, <div>, ect.
Best,
Tym
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 01:03 AM
Can you try changing the mailto tag from ${mailto:mailto.approval.accept} to ${mailto:mailto.approval} and check ?
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 01:10 AM
checked same output :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 01:20 AM
Hello @avinashdubey103,
You need to use the <a> tag to mark any text as a link.
Please refer to the below documents for further information:
1. https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0684584
If my above answer resolve your issue, please mark the solution as 'Accepted Solution' and also mark it as 'Helpful'.
Thank You!
Prathamesh.