- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2022 09:00 PM
I need to create an inbound email action so that it creates a record in change request table.
Subject - short description of change request.
Body - Description.
Attachments in email - attachments in change request.
Please guide me how to achieve this.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 02:34 AM
it should not be twice
small update
GlideSysAttachment.copy('sys_email',sys_email.sys_id,'change_request',current.sys_id);
OR
current.insert();
GlideSysAttachment.copy('sys_email',sys_email.sys_id,'change_request',current.sys_id);
current.update();
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
‎02-28-2022 01:16 AM
Hi,
use this along with that line
GlideSysAttachment.copy('sys_email',current.sys_id,'change_request',current.sys_id);
current.update();
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
‎02-28-2022 01:49 AM
Hi,
still it is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 01:57 AM
Hi,
try this
current.insert();
GlideSysAttachment.copy('sys_email',current.sys_id,'change_request',current.sys_id);
current.update();
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
‎02-28-2022 02:29 AM
It's not working and in the script you are putting current.sys_id twice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 02:34 AM
it should not be twice
small update
GlideSysAttachment.copy('sys_email',sys_email.sys_id,'change_request',current.sys_id);
OR
current.insert();
GlideSysAttachment.copy('sys_email',sys_email.sys_id,'change_request',current.sys_id);
current.update();
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader