- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2018 12:14 AM
i have created an email script name es
i called it in subject and body
subject : ${email_script : es} --not working
body: ${email_script: es} -- working
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2018 10:49 PM
Hi,
I think it will be a domain seperated instance . Please use it as below
See below code:
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
// Add your code here
var priority_value=current.getValue('priority');
if(priority_value == 101)
{
value='1';
}else if(priority_value==102)
{
value='2';
}
else if (priority_value==103)
{
value='3';
}
else if (priority_value==104)
{
value='4';
}
template.print(value);
gs.log('priority value is' +priority_value,'lghori103');
email.setSubject(current.sys_domain.name +"-"+current.service_offering.getDisplayValue()+": Incident "+current.number+"- P"+value +" is assigned to your group");
Thanks,
Ashutosh Munot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2018 12:28 AM
Kindly refer the thread below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2018 12:50 AM
can you tell me from above script name the syntax to call it in subject?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2018 10:49 PM
Hi,
I think it will be a domain seperated instance . Please use it as below
See below code:
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
// Add your code here
var priority_value=current.getValue('priority');
if(priority_value == 101)
{
value='1';
}else if(priority_value==102)
{
value='2';
}
else if (priority_value==103)
{
value='3';
}
else if (priority_value==104)
{
value='4';
}
template.print(value);
gs.log('priority value is' +priority_value,'lghori103');
email.setSubject(current.sys_domain.name +"-"+current.service_offering.getDisplayValue()+": Incident "+current.number+"- P"+value +" is assigned to your group");
Thanks,
Ashutosh Munot
