How to add a link to an incident template?

yltsai
Mega Guru

To all experts,

We are using Helsinki.

There is a requirement. It asked me to create an Incident template, so the team can apply the template to the incident.

There is a link which should be inserted to the customer notes field. But the link did not turn out as expected.

It only links to part of path and left the rest as a common text. It dues to a white space in a folder's name.

I tried with %20 to replace the white space but it did not work.

http://mycompany/IT/security/Shared%20Documents/documentname.docx

I also tried the "Copy the hyperlink" and pasted into the template work note. It still did not work.

http://mycompany/IT/security/Shared Documents/documentname.docx

Below is how the link displayed in the emails to the customers.

http://mycompany/IT/security/Shared Documents/documentname.docx
It stops at Shared.

How can I make the link all the way through to docx?

Below is a screenshot from my incident template for the part of customer notes for your reference.

find_real_file.png

I appreciate your helps.

1 ACCEPTED SOLUTION

yltsai
Mega Guru

Thank you for all your advice and suggestions.



The team made a request to remove the white space for the folder name and it works very nicely now.


View solution in original post

7 REPLIES 7

abhishekdash
ServiceNow Employee
ServiceNow Employee

Hello yltsai,



Can you try something like this below:



Screen Shot 2017-07-24 at 2.49.14 PM.png



Here is what I have used on worknotes:



Please use below link:


[code]<a href ="http://mycompany/IT/security/Shared Documents/documentname.docx" target="_blank"> Click Here</a>[code]



Hope this helps.



Thanks,


Abhishek



If this reply assisted you, please consider marking it Correct, Helpful, or Like it.


This helps other customers to learn from your thread.


Addition:



Here is how I received the email:



Screen Shot 2017-07-24 at 3.05.51 PM.png



Here is the link on the browser when I click on the link:



Screen Shot 2017-07-24 at 3.06.04 PM.png



Thanks,


Abhishek


Abhishek,



I applied your suggestion. My issue is not resolved.


In the Work notes, all the tags are displayed when I applied the template.


When I looked at the email that a caller would see, it shows all the tags and the clickable link is inside the <a> tag rather than the Document.


[code]<a href="http://mycompany/IT/security/Shared Documents/documentname.docx" target="_blank">Document link</a>[code]



Any suggestions?


Regards,


abhishekdash
ServiceNow Employee
ServiceNow Employee

Which version of ServiceNow you are in?


Can you please update the screenshot of the work notes after the incident is submitted and also the screenshot of the email received.



Also, try using a close tag for the code and see if it works:



[code]<a href="http://mycompany/IT/security/Shared Documents/documentname.docx" target="_blank">Document link</a>[/code]



Here is how it looks like for me when I add the template and post the link:



Screen Shot 2017-07-24 at 3.50.43 PM.png



Thanks,


Abhishek