Can you autoattach an excel sheet template, so it is there whenever the catalog item is used?

Martha Chadwick
Giga Contributor

We are creating a catalog item and would like to auto attach an Excel template upon submission.  Is this doable?

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Martha Chadwick 

 

https://www.servicenow.com/community/developer-forum/attach-a-file-in-catalog-item-as-attachment/m-p...

 

https://www.servicenow.com/community/developer-forum/attach-a-file-in-catalog-item-as-attachment-and...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@Martha Chadwick 

Follow this step

1) create a system property to hold the excel sheet template

2) then after RITM submission use GlideSysAttachment.copy to copy file from property to target record

If you are asking how to show file on catalog item while user submits then do this

You have to put the attachment on the catalog item and then create a link to it in the description field OR Rich text label variable.

 

AnkurBawiskar_0-1741836263205.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader