Inbound email action issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 10:18 PM
Hi,
I have created an inbound action to create "incident" whenever email is received from specific email ID and subject.
While testing, I have sent an email from my email ID with specific subject. Incident is created when I sent an email from my email ID. But it didn't create the incident when the email is from that specific email ID. Email ID is present in ServiceNow.
Below is my script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 01:02 AM
which field mapping is missed can you share...?
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 01:22 AM
Below are the field details.
Caller, Assignment Group, Configuration Item, Business service and work notes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 01:46 AM
This is the email which we receive for inbound action.
From the email body, I am taking the details and passing it in incident form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 02:09 AM
This should work-
var assignmentGroup = new GlideRecord('sys_user_group');
assignmentGroup.addQuery('name', assignmentGroup);
assignmentGroup.query();
if (assignmentGroup.next()) {
current.assignment_group = assignmentGroup.sys_id;
}
if (workNotes) {
current.work_notes = 'Work Notes: ' + workNotes;
}
You can make changes for other fields as well.
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 03:58 AM
No. It didn't work. Thanks for the update.