Attach a file in Catalog Item as attachment

SNOW46
Tera Contributor

Hi All,

I want to attach one Excel Sheet as an attachment in one Catalog Item so that whenever form loads the attachment will be visible and any user can download it.

Can anyone let me know how to achieve this?

 

 

Thanks,

SNOW@Das

21 REPLIES 21

Hi,

You can get the attachment reference, when you upload an attachment it goes to sys_attachment table.

So, you can create a variable or script which ever you are comfortable with by refernecing it to the Attachment table and then adding the conditions as below:

Table Name is sc_cat_item AND Table sysID is your Catalog Item sys_id.

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Deeshma
Giga Contributor

Hi Sholke,

Thanks for your response. The requirement is the end user should be able to download the attachment (excel, in the catalog item) on selecting particular option . 

Could you please advice on this...

Regards,

Deeshma

Attached it to the catalog item and then put a link in the description field.

subhadeep1618
Tera Guru

First of all, this is extremely simple and does not require any sort of coding or complicated procedures.

In your catalog item, click the attachment icon (clip icon) in form header (where the Save/Update/Try It buttons are shown).

Then upload a file (PDF, Doc, Excel, etc.).

After this scroll down to the Description field of the catalog item.

Click on 'Insert/edit Link'.

  • DO NOT enter anything in URL
  • Only enter the text to be displayed on the hyperlink
  • Then click on the Link list drop down
  • You will see your attached file name here, just select it.
  • Moment you select your attached file in Link List, you will see that its URL is automatically set in the URL box.

That's all, you have a link to your catalog item's attachment for end users.

For better understanding, check the image that I have attached to this post.


Please mark this post as a solution and also as helpful, if this resolves your issue or query.

Thanks,
Subhadeep Ghosh.

Thank you subhadeep. We followed & added an Attachment via the Catalog Item, which works - good, but the attachment also appears separately via our portal. Is there a way to hide the attachment itself, from showing in portal? eg,

WinnieP_0-1687224236725.png