Copy attachments from Kb artical to Notification
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 01:44 AM
Hi All,
I am copying the attachments from Kb article to notification email and i writing the email script to do that but i its not working .Please find the attached script below and let me know if anything has to be modified.
script :
var grAttach = new GlideRecord("sys_attachments");
grAttach.addQuery("table_name", "kb_knowledge");
grAttach.addQuery("sys_id", "56dba1121b36b998bcae5457604bcbdc")
grAttach.query();
if (grAttach.next()) {
GlideSysAttachment.copy('kb_knowledge', '56dba1121b36b998bcae5457604bcbdc', 'sys_email', current.sys_id);
}
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2023 02:47 AM
use glide system attachment api
Example: