Downloadable Form and Attachment ui macro

Blaze2
Kilo Guru

How does a document get loaded on Service Portal for Download.

I understand that UI Macros are not functional as they were before, but I am completely lost on what needs to be changed in order to have them work in the Serivce portal.

i tried pasting the code, but it would not allow me here

Downloadable form

find_real_file.png

Attachment UI Macros

find_real_file.png

1 ACCEPTED SOLUTION

Blaze, sorry maybe I wasn't clear on my idea to solve your issue.   I created a quick example to demonstrate what I am talking about.   Basically a catalog item that is exposed via Service Portal where I am leveraging the HTML type description field with a link to download the ServiceNow attachment:


find_real_file.png


View solution in original post

6 REPLIES 6

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

What is your use case?   Attachments on records appear in the Service Portal out of the box.   For example here is an incident with an attachment:


find_real_file.png


The idea is that there are some paper forms still being used in the organization. Therefore, I would like



1. The paper form to be on the catalog form


2. The user if he/she does not have the form can download it directly from the catalog item instead of looking for it.


3. Upload the completed form.  



I know it would make more sense to just create the form itself in SN, but that is not my decision.


Could you not use the HTML field on the catalog form to have a clickable link to download the attachment?   I have done this in internal instances where I do attach the document to the catalog item and then right click on it to get the URL and then use that in the catalog item HTML editor to make the text clickable.   Such as:


find_real_file.png



The "Import Template" is just pointing to the a URL like the following:


https://INSTANCE-NAME.service-now.com/sys_attachment.do?sys_id=SYS-ID-OF-ATTACHMENT


It works on the ITIL portal, but not the Service Portal which is where I need the functionality.





The script I provided above is in Jelly format, which is not compatible on the Service Portal.