how to attach an excel file in sys_attachment table.

manmathpanda
Giga Guru

Hi Developer,

I am working on a module which one already developed before and now i got a chance to work on it to fix the issues. But the isssue is like below:

1) find_real_file.png

when i am clicking on "click here" , it is redirecting to my developer instance , sys attachment as below

find_real_file.png 

means it is going to my sys attachment table but not finding the sysid of that attachment.

So for this what i have to do. i am thinking to like as below:

1) I will go to my dev instance ----> sys_attachment table- and there i will create upload the file but there is no new button as below

find_real_file.png

 

so what i will do , when the user will click on "click here" option , it shoud show the file or download the file .

1 REPLY 1

Josh Virelli
Tera Guru

Hi Manmathpanda,

Does that file exist in your Production environment? It just may not have been cloned down to your Dev environment, try changing the ServiceNow instance name in the URL to the Production instance and see if it downloads. If so, then this is only an issue in your Dev environment and the Attachment wasn't cloned down.

Thanks,

Josh