- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2023 02:03 AM
Hello,
I have the following mail script, I have also tried adding it to an existing one and had the same result:
Mailscript: loth_survey_results
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
var resultsURL = 'REDACTEDURL.com';
template.print('<a href=' + resultsURL + "View results from recent Digital&IT Surveys" + '</a>');
})(current, template, email, email_action, event);
The URL and text does not appear in the preview or when a notification is received for completing a survey.
Placement of mailscript in existing and working notification:
Can anyone see why this wouldn't be working?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2023 02:08 AM - edited ‎12-15-2023 02:08 AM
Hi @Wasdom_Kung
It appears missing the '>'. Let's try the below adjustment.
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
var resultsURL = 'REDACTEDURL.com';
template.print('<a href=' + resultsURL + '>' + "View results from recent Digital&IT Surveys" + '</a>');
})(current, template, email, email_action, event);
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2023 02:08 AM - edited ‎12-15-2023 02:08 AM
Hi @Wasdom_Kung
It appears missing the '>'. Let's try the below adjustment.
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
var resultsURL = 'REDACTEDURL.com';
template.print('<a href=' + resultsURL + '>' + "View results from recent Digital&IT Surveys" + '</a>');
})(current, template, email, email_action, event);
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2023 02:10 AM
Ah, always something simple, thank you Timi 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2023 02:23 AM
@Wasdom_Kung haha you're so welcome. Sometimes we may need a second pair of eyes. 😜
Cheers,
Tai Vu