Using Attachments with the email client
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2018 05:07 AM
Hi,
Is there a way (i'm guessing via a script) that the email client can automatically add all attachments on an incident record when a new mail is created?
Alternatively, is there any method of adding attachments sent via the email client and copying them over to the manage attachment area on the record. e.g. if i create a new email but add an attachment from my desktop - can it add it automatically to the record?
the second method would be my preference if possible.
Many thanks,
James
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2018 06:28 AM
I think the second method would be possible. You would need to have a business rule on the sys_attachment table. It would have to run on insert where the table name is sys_email. Inside the BR you would query the sys_email table using current.table_sys_id to find the email record the attachment belong to. Then if the target_table on the email record is 'incident' you can copy the attachment to the incident since you know the sys_id by the instance field of the email. You would use this to copy the attachment to a new record: Packages.com.glide.ui.SysAttachment.copy('sys_email', current.table_sys_id, 'incident', emailGlideRecord.instance);
It sounds kind of complicated but there is a way. The one part you may need to figure out is how to query an email and tell if it was sent using the email client.