How to copy attachments from inbound action to incident record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 11:11 PM
Hi Team,
When emails are sent to servicenow with attachments ,the attachments are not getting added to respective incident record.And also we need to validate if the email sent is from user present in servicenow.If the user is not present we do not have to copy the attachments.
How we can achieve this.
Thanks in Advance.
Regards,
Karan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2023 02:28 AM
Hello @KARAN24
Try this
GlideSysAttachment.copy('sys_email', sys_email.sys_id, current.getTableName(), current.getUniqueValue());
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2023 02:58 AM
Hi Samaksh,
Where should I use this:
GlideSysAttachment.copy('sys_email', sys_email.sys_id, current.getTableName(), current.getUniqueValue());
Regards,
Karan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 11:39 PM
Hi @KARAN24 ,
Please refer to this Link :https://www.servicenow.com/community/developer-forum/copy-attachment-to-incident-inbound-action/m-p/...