Email Notification - How to add link to KB Question or Article

Floridalife
Giga Expert

When using this code to link the record ${URI_REF} for an email about question/answer or KB article, it links to the RAW record and not the KB interface the users are familiar with, how can we link it directly into the KB interface?

1 ACCEPTED SOLUTION

Got it working with changing to SYSID



<p>  <a title="View Question" href="/$social_qa.do?sysparm_view=question&amp;sysparm_question_id=${sys_id}" target="_blank">View Question</a></p>



Thanks for your help !


View solution in original post

5 REPLIES 5

Andude
Tera Contributor

I know this is an old article, but a much better way to accomplish this is to drop the following code into the HTML Source Code editor of the email and replace "YOUR INSTANCE.com with your root ServiceNow URL (e.g. mcdonalds.service-now.com):

<p><a title="New" href="https://YOUR INSTANCE.com/kb_view.do?sysparm_article=${kb_knowledge.number}" target="_blank" rel="noopener"><strong>${kb_knowledge.short_description}</strong></a></p>