How to use ${URI_REF} to populate Know Article number instead of short description

Snow-Man
Tera Contributor

Hi everyone,

 

I want to populate Knowledge article number in my notification which should redirect me to the knowledge article in backend view (NOT PORTAL). my notification is on Knowledge table

 

How can I achieve this? 

 

thanks,

everyone

1 ACCEPTED SOLUTION

Voona Rohila
Kilo Patron
Kilo Patron

Hi @Snow-Man 

${URI_REF} - Will give display value of the record as link text. ( What is the display Value of the knowledge Table in your instance?).

 

Alternatively, You can write a email script with below code and include that in your notification to get the link with number.

var requestUrl = '/kb_knowledge.do?sys_id=' + current.sys_id;
 template.print('<a href="' + requestUrl + '">' + current.number+'</a>');

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

4 REPLIES 4

Ankur Kasana
Tera Expert

Hi,

 

Follow these steps:

1. Open the notification record.

2. Click on the tab what it will contain.

3. Inside HTML editor Use like Knowledge Article Number : ${REF_URI} for knowledge article number as backend link instead ${URI_REF}.

4.Save the record and see in the preview.

 

Please mark my answer Helpful after implementing 

Thank you

Hi, this didn't work for me but thank you for your time 🙂

I used the mail script what voona shared and it work wonders.

Voona Rohila
Kilo Patron
Kilo Patron

Hi @Snow-Man 

${URI_REF} - Will give display value of the record as link text. ( What is the display Value of the knowledge Table in your instance?).

 

Alternatively, You can write a email script with below code and include that in your notification to get the link with number.

var requestUrl = '/kb_knowledge.do?sys_id=' + current.sys_id;
 template.print('<a href="' + requestUrl + '">' + current.number+'</a>');

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Thanks Voona, it works for me...