- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2018 09:36 PM
There is a template(Incident), which has related child templates(incident_task).
When I apply template via Inbound Email Action on Incident and try to set other fields(description) like below,
then the parent template is applied, but the related child templates are not applied.Any idea ,what Is incorrect?
current.applyTemplate('Incident_Template');
current.description = email.body_text;
current.short_description='abc';
current.insert();
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2018 09:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2018 09:45 PM
Try
GlideTemplate.get(<template sysid>).apply(GlideRecord)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2018 09:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2018 10:21 PM
can you try current.setValue('description',email.body_text);