Linking to Knowledge Article from an e-mail notification for Approvals

johnsgp
Mega Expert

When I request publication or retirement of a knowledge article and the workflow creates an approval (in the sysapproval_approver table), the "Approval for" field (sysapproval) in that table is blank.   According to the manual, Email Notifications - ServiceNow Wiki section 8.2 Linking to Related Records, it is linked to the related Task record (incident, change, problem, etc).   In the case of knowledge article approval, there is no task.

Is there any way to link to the knowledge article so that an e-mail notification can pick out things like the short description of the article?

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

If the approval is not for a task it uses the document_id field. In that case you could look that up through a mail script and pull attributes.


View solution in original post

10 REPLIES 10

as a side note to this.. i found that an event is fired kb_knowledge.approval.inserted when an approval is requested. But in our instance I cound't see this event registered in event registry. So I added this in the event registry and used that to trigger notification for this.


This works great thank you.   I am setting this same notification up but for a rejection notification back to the submitter.   What is the correct available user to select for "who will receive".   I am having issues with this one. Thank you


madanm7786
Mega Guru

Hi John,



I am also working on similar requirement.


I am using below to links in my email template,


Click here to view Approval Request: ${URI_REF}


Click here to view Knowledge Article:   ${document_id.URI_REF}



But it is not displaying the links.


Can you please help me on this, how you have configured.


Have you tried putting the email subject and body directly in the notification rather than using a template (just as a test)?   I've noticed that templates don't work when the notification responds to an event and there might be other cases as well.


Hi madanm,



Today I faced the similar issue.


Click here to view Approval Request: ${URI_REF} for knowledge is not working.



It's showing 'LINK' which is also redirecting to the Approval table correctly, but I need to display a number.



Did you get any solution on this?