- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 12:57 AM
I have a catalog item, when submitted it checks if the type is resource onboarding, if yes then it has to send an pdf document as an attachment to the user in an email . I want to achieve this in flow designer.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-11-2025 09:46 AM
so it's a standalone PDF.
You can create a system property and add PDF to that property record.
I shared solution for something similar 2 years ago
Adding latest attachment from sys_attachment table to sys_email record
1) create a system property and add your file to it
2) then create after insert BR on sys_email with condition as this
You change the table as sc_req_item
BR script
(function executeRule(current, previous /*null when async*/) {
var propertyRecordSysId = ''; // give here the sysId of newly created system property record where file is present
var s_Attach = new GlideRecord('sys_attachment');
s_Attach.addEncodedQuery('table_sys_id=' + propertyRecordSysId);
s_Attach.query();
if(s_Attach.next()){
var rec = new GlideRecord('sys_email_attachment');
rec.initialize();
rec.attachment = s_Attach.sys_id;
rec.file_name = s_Attach.file_name;
rec.source = 'notification';
rec.content_disposition = 'attachment';
rec.email = current.sys_id;
rec.insert();
}
})(current, previous);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 02:24 AM
It is showing in the sys_email -> sys_email_attachment(here) and does it show as pdf document to the end user?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 02:30 AM
yes once it's added to the outbound email, that file should be present in the email and user should be able to view/download in the email they receive.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 02:34 AM
In the mail that I am recieving, I am not able to see the pdf document it is just showing the text but in sys email accatchmnet it is showing the attachmnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2025 07:45 PM
then check file size and see if system is blocking it from sending due to file size restriction
try with small size
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2025 03:05 AM
Could you please let me know, how can I change the Business rule. I need to attach one pdf for resource onboarding and one more pdf for resource offboarding. I have two records in system property.