Email inbound actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2023 09:41 AM
I have a requirement like, when a email has been sent, the response from the user has to be captured in Requested item worknotes.
How to configure email inbound for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2023 12:16 PM
Hi @User_267,
Create new inbound email action use condition as per your requirement and use below code
var subject = email.subject.toString();// email subject contains request item number
var emailResponse = email.body_text;
var ritm = new GlideRecord('sc_req_item');
ritm.addQuery('number', subject))
ritm.query();
if (ritm.next())
{
ritm.work_notes = "Email Response:\n" + emailResponse;
ritm.update();
}
Please mark it as solution proposed and helpful if it works for you.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2023 10:48 PM
It's not for one ritm, so i cannot update ritm number in script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2023 02:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-22-2023 07:49 AM
Not like that, there will be multiple users so multiple catalog items will be submitted and we get different ritm's for every catalog item right.so I cannot mention only one ritm number right in script