add attachments to the table through email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-14-2024 11:37 PM
Hi
How to attach any files to the incident record through inbound email action.
In the instance there is a OOTB create incident inbound email action but there is no any attachment related code over there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-14-2024 11:51 PM - edited ā03-14-2024 11:52 PM
Hello @shivaadapa ,
var attachment = new GlideSysAttachment();
var emailSysId = sys_email.getUniqueValue();
var attachmentName = '';
var gr1 = new GlideRecord('sys_email');
gr1.addQuery('istance',current.sys_id);
gr1.query();
var grSysId = gr1.sys_id;
GlideSysAttachment.copy('sys_email',emailSysId,'incident', "pass incident sys_id");
You can use the above code to copy the attachments from your email to the target table.
Please mark helpful or correct if this helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-15-2024 02:49 AM
incident is creating but attachments are not attaching to the incident record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-15-2024 02:56 AM
Hello @shivaadapa
GlideSysAttachment.copy('sys_email',emailSysId,'incident', "pass incident sys_id");
Use below code to attach the attachments on the incident record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-15-2024 03:29 AM
Hi Shivaadapa,
Try using flow designer and use action copy attachment.
Please mark helpful or correct if this helps you.
thanks
sid