Where to store a common PDF filein ServiceNow?

Lihini
Tera Contributor

Hi Community,

 

I have a scenario where I need to send an email with an attachment from ServiceNow. The attachment is a common PDF file, such as a shipping instruction document, which is the same for all recipients.

Before sending it as an attachment in the email notification, I want to store this PDF in ServiceNow. Later, I will use an email notification to attach this file and send it out.

 

My questions are:

  1. What is the best table in ServiceNow to store a reusable file (like a shipping instruction PDF)?
  2. Are there any best practices or things to consider for this kind of use case?

Any help, example scripts, or references to documentation would be greatly appreciated!

Thanks in advance!

Lihini Dissanayake
7 REPLIES 7

J Siva
Tera Sage

Hi @Lihini 

You can use sys_attachment table to store and re-use the common files.
Regards,
Siva

Ankur Bawiskar
Tera Patron
Tera Patron

@Lihini 

you can use system property and add the static PDF file there, that's what we have done in recent implementations

Then you can copy the file from that property record to your target record and then use "Include Attachment" checkbox in email notification, so that it sends the file in outbound email

I shared solution recently, check that and enhance it

Add a static attachment to an email that is sent upon creation of a case. 

also check this link where I shared solution, here you need not copy the attachment to target record but you can add that file on the fly in email record

Attachment to the notification 

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

@Lihini 

Hope you are doing good.

Did my reply answer your question?

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