how to attach the excel sheet by default in catalog item variable

nukac
Tera Contributor

i have one requirement i need to create a one variable that variable contain by default one attachement,kindly suggest how to do this requirement

20 REPLIES 20

Hi,



tried again on my personal instance and it works absolutely fine. Can you Remove the existing attachment from the catalog Item and upload the same again.


Navigate to sys_attachment Table, get the latest entry from there containing the file you just uploaded. Right click on that Record and click on Copy Sys_id.



It should work. Let me know if still you are facing any difficulty.



Regards,


Shloke


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

Regards,
Shloke

Hi @shloke04 and @Sampath ,

I got the same requirement. But I have a doubt regarding this, as we do this in development and when migrating to prod, do we need to upload the attachment manually again in prod and copy the sys_id of that attachment in prod?

Hello @shloke04 ,

 

This is not working from the service portal.

From the backend it is fine..

Can you help me.?

 

Thanks

Soumya

chirag_bagdai
ServiceNow Employee
ServiceNow Employee

Check the URL when you get error "Requested attachment does not exist".


nukac
Tera Contributor

Thank you chirag its looks good fine


small issue i want to put mandatory that attachment when submitting the form i wrote on submit script it considering the form header paper clip.not   my custom attachment.


find_real_file.png


i gave variable type "macro with label" label name "Beeware parameter upload".


Here with out uploading the file form submission going...it should not happen..



please suggest me.