How to add attachment in the catalog item so that user can download it.

Samiksha2
Mega Sage

Hi All,

 

I have a requirement to add an attachment in the catalog item so that user can download it.

I checked some community links, in which it is mention to add macro. But the macro type is not visible in catalog item.

 

Please help.

 

Thanks,

Sam

1 ACCEPTED SOLUTION

Hi @Dr Atul G- LNG ,

I use Rich Text Label instead of Attachment. and it is working properly.

 

Thanks,

Sam

View solution in original post

8 REPLIES 8

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Samiksha2 ,

 

Follow the below :

You can directly add the attachment in the variable itself.

Like below:

SohailKhilji_0-1708505376312.png

 

In portal view:

SohailKhilji_1-1708505376300.png

 

If NOT, You can create a HTML field and have anchor link which download the file for you...

 

Hope this helps.....

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Hi @Sohail Khilji ,

I already told them about this. But they want to add it in the below like this.

Please refer to this template for providing requirement- Form Link

Is there any way to do this?

 

Thanks,

Sam

Yes use HTML type field and in the content add the text ''Please refer to this template for providing requirement- Form Link'' and make Form Link to be an anchor link.

 

so in the anchor link you have to create a hypelink as below :

instacename + sys_attachement + sys+id  _ noblank to open in new window.

 

Eg code : (REPLACE INSTANCE ID , SYS_ID OF ATTACHEMENT (YOU HAVE TO PRELOAD IN ATTACHEMENT TABLE AND GET SYS_ID OF THE RECORD))

 

 

<a href="https://<your_instance>.service-now.com/sys_attachment.do?sys_id=43f614050a0a0b846fc33c7021c00455&view=true" target="_blank">Form Link</a>

 

 

iHOPE THIS HELPS

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Hi @Sohail Khilji ,

I used Rich text Label and it is working as expected.

Thanks,

Sam