- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2020 07:41 AM
Hi,
I have a requirement to allow users to add attachments from the existing incident record when using the email function.
I have come across articles, which leverage before BR and attaches all the attachments to the email.
I do not want that, In the email when i click on the attachment icon, I should see all the attachments from the incident there.
Also I have seen BR scripts which duplicate the attachment when sent.
Please help.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2020 10:11 PM
can you try with below code.
After "Insert" business rule on "sys_email" table .
script:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
GlideSysAttachment.copy(current.target_table, current.instance ,'sys_email', current.sys_id);
})(current, previous);
See if its not creating duplicate attachment on email client.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2020 01:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2020 02:12 AM
Hi,
As per the article it would attach the attachments to email client
For removing duplicates possibly you will have to delete older ones
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2020 04:00 AM
and what about auto attaching the attachments? how can we stop that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2020 04:15 AM
Hi,
I didn't get the part.
You want attachments to be copied over the email client right
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2020 07:49 AM
Hi Usmaan,
Unsure if you have gone through article. You can refer once as it will populate all attachments & you have an option to remove. I
f that does not help then you will have to go with lot more customized approach.