Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 10:05 PM
Hi
I need to update our current change approval request notification to display the change type in colour based on the type. For example,
Emergency = Red
Expedited = Orange
Normal = Blue
Is it possible to have just one email notification with an email script to achieve this? If so, could any of you please assist me in scripting.
Thank you in advance.
Regards
mmk
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 11:07 PM
HI @Mi Mi type is a choice field, you can directly put the display value like below
var gr = new GlideRecord("change_request");
gr.addQuery("sys_id", current.sysapproval);
gr.query();
if (gr.next()) {
if (gr.type == 'emergency')
template.print('<p style="font-size:12px; color:red; font-family:arial">' + 'Emergency' + '<strong>');
if (gr.type == 'normal')
template.print('<p style="font-size:12px; color:orange; font-family:arial">' + 'Normal' + '<strong>');
if (gr.type == 'expedited')
template.print('<p style="font-size:12px; color:orange; font-family:arial">' + 'Expedited' + '<strong>');
}
Regards
Harish
Harish
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 11:13 PM