- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 12:04 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 12:35 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 12:17 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 01:14 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 12:35 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2024 01:14 AM
Thanks Voona, it works for me...