Provide a link. Click on link and Document get download

aishwaryade3564
Tera Contributor

I have created Catalog need to create one variable when click on that one document related training get download. How to achive this. I have create UI macro but not working. 

aishwaryade3564_0-1722322593558.png

 

1 ACCEPTED SOLUTION

swathisarang98
Giga Sage
Giga Sage

Hi @aishwaryade3564 ,

 

Edit the line as below,

href="/sys attachment.do?sys id=e739ee7bc32b4210a652d5fc050131a7"

 

if the above doesn't work try Below approach,

 

You can create a field with Type as 'Custom' in your catalog item and create a widget and tag that widget to Custom field

 

Custom Field:

swathisarang98_1-1722325917875.png

 

 

Widget creation:

Navigate to "sp_widget.LIST"

Create New as below,

swathisarang98_0-1722325864121.png

 

 

<div>
 <p> <b><font color="black">Please fill the excel template and attach it to this form.
 </font> </b></p> 
  <a href="/sys_attachment.do?sys_id=1a6f278853f70e10289bf301a0490e09" target ="_blank"><font color="blue">Click Here</font>
  </a><font color="black"> <strong>to download the template </strong></font>
</div>

 

 

 

Change the sysid with your attachment sys_id

 

Result:

swathisarang98_2-1722325995211.png

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

 

 

 

 

 

View solution in original post

2 REPLIES 2

SN_Learn
Kilo Patron
Kilo Patron

Hi @aishwaryade3564 ,

 

Can you try the below before the 'sys_attachment'

https://<yourInstanceName>.service-now.com/sys_attachment....

 

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

swathisarang98
Giga Sage
Giga Sage

Hi @aishwaryade3564 ,

 

Edit the line as below,

href="/sys attachment.do?sys id=e739ee7bc32b4210a652d5fc050131a7"

 

if the above doesn't work try Below approach,

 

You can create a field with Type as 'Custom' in your catalog item and create a widget and tag that widget to Custom field

 

Custom Field:

swathisarang98_1-1722325917875.png

 

 

Widget creation:

Navigate to "sp_widget.LIST"

Create New as below,

swathisarang98_0-1722325864121.png

 

 

<div>
 <p> <b><font color="black">Please fill the excel template and attach it to this form.
 </font> </b></p> 
  <a href="/sys_attachment.do?sys_id=1a6f278853f70e10289bf301a0490e09" target ="_blank"><font color="blue">Click Here</font>
  </a><font color="black"> <strong>to download the template </strong></font>
</div>

 

 

 

Change the sysid with your attachment sys_id

 

Result:

swathisarang98_2-1722325995211.png

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang