Need Urgent Help: My survey mail consists of smileyes but with some urls,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello Team,
I am facing a challenge currently, I am populating my smiley icons in my mail with a survey link embedded for those images. All these images are stored in UI image table png format, storing the images in email script and calling the email script from the email notification(html) type..below are the codes.. When I preview the notification , it is coming nicely (image1) but in outlook mail it is coming with some url (image2). Please help.. @Ankur Bawiskar @Chuck Tomasi
Notification body:
|
|
Summmary Details: ${metric_type} ${mail_script:c_incident_number_surveys}
Short Description: ${mail_script:c_short_description_surveys}
Your request has been resolved.
We would appreciate if you could spend a few minutes providing feedback by clicking on the link below.
${mail_script:c_survey}
To view your survey queue at any time, sign in and navigate to Self-Service > My Assessments & Surveys.
|
Email Script:
image 2:
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Basically please help me get rid of those links below smileys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
this seems to be outlook issue
try this updated email script
(function runMailScript(current, template, email, email_action, event) {
var baseUrl = "https://c.service-now.com/";
var surveyUrl = baseUrl +
"assessment_take2.do?sysparm_assessable_type=5b8a7a0d1b71615096998594e34bcb24&sysparm_assessable_sysid=" +
current.sys_id;
template.print('<table role="presentation" cellpadding="0" cellspacing="0" border="0"><tr>');
function icon(file) {
template.print(
'<td style="padding-right:8px;font-size:0;line-height:0;mso-line-height-rule:exactly;">' +
'<a href="' + surveyUrl + '" target="_blank" ' +
'style="display:block;font-size:0;line-height:0;text-decoration:none;border:0;outline:none;">' +
'<img src="' + baseUrl + file + '" width="60" height="60" border="0" ' +
'style="display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;" ' +
'alt="smiley">' +
'</a>' +
'</td>'
);
}
icon("114.png");
icon("111.png");
icon("112.png");
icon("113.png");
icon("115.png");
template.print('</tr></table>');
})(current, template, email, email_action, event);
💡 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 || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
