- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 06:31 AM
Hi All,
Can someone help me with the below email notification code modification?
It was earlier: View request: RITM0030864 and I would require: only a view request in a button text and clicking the button text should redirect to the portal page.
Please find the screenshot for reference.
Please find the existing code for reference.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 07:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 06:47 AM
${URI_REF}
If you add this in to the email body. I think you need not use the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 06:55 AM
(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */ event) {
var url = gs.getProperty('glide.servlet.uri') + 'sp?id=ticket&table=sc_req_item&sys_id=' + current.sys_id;
var buttonText = 'View request';
// Adjust styles for the button
var buttonStyle = 'background-color: #4CAF50; /* Green */' +
'border: none;' +
'color: white;' +
'padding: 15px 32px;' +
'text-align: center;' +
'text-decoration: none;' +
'display: inline-block;' +
'font-size: 16px;' +
'margin: 4px 2px;' +
'cursor: pointer;';
// Print the button
template.print('<button style="' + buttonStyle + '" onclick="window.location.href=\'' + url + '\'">' + buttonText + '</button>');
})(current, template, email, email_action, event);
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 07:16 AM
View Request link button does not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2024 07:17 AM