Need to generate a PDF in ServiceNow without attaching it to any record, for use in email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 07:10 AM
Hi Community,
I'm generating a PDF file in ServiceNow that I intend to use for sending an email. I don’t want this file to be attached to any record, as I plan to retrieve it using the file name. However, the GlideSysAttachment API requires a table name and a record sys_id to create the attachment.
I’m aware that we can use a "before insert" Business Rule to attach the file to the sys_email record, but since the PDF contains a large number of records, I’m concerned this may impact performance.
Is there any way to create or temporarily store the file without linking it to a specific record?
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2025 11:52 AM - edited 05-16-2025 12:15 PM
Hello, The only way i can think of is that you can attach it to record, download it and then delete it immediately in same code.
I have done it with ui action like this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 09:42 AM
Hello, did you try this approach?