add template in inbound email action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi everyone,
I'm working on an Inbound Email Action that creates incidents. I want to apply a predefined Incident Template to populate default values like category, urgency, impact, assignment group, etc.
script:
while script subject and caller field is populated from email. but from template it is not updated
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
what's there in template? share that screenshot.
what type of inbound action is this?
If that's type = New then you should use current object
var t = new GlideTemplate.get('template sysid');
t.apply(current);
current.work_notes = "Original email:\n" + body;
current.caller_id = callerId;
current.insert();
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
no OOB action
when i am using your script it creating two incidents one incident from email another incident from template
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
while using this script incidents are created 2 i want to create only one incident in that incident i want to populated the email subject as short descrption and descrption populated through template.
