PDF Attachment not comes from HR template to HR task
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2022 11:09 PM
Hi All/
We want attach pdf documents on HR task for end user. so we use following approach. I have attach a pdf on HR template ,from this attachment comes to HR task.
We want to copy pdf attachment from HR template to HR task. Wrote After/insert BR on task table as per article.
After/insert BR
==============
(function executeRule(current, previous /*null when async*/) {
gs.addInfoMessagedd("Hello pdf in task");
GlideSysAttachment.copy('sn_hr_core_template',cfde0ab387685d5463c853973cbb35e6, 'sn_hr_core_task', current.sys_id);
})(current, previous);
Pdf attachment not comes up.