- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 11:08 PM - edited 08-24-2023 11:11 PM
Can anyone help me @Ankur Bawiskar @Vasantharajan N @Pradeep Sharma
As I need to display the business elapsed percentage of SLA results as Round number in the SLA Email Notification.
Currently it's triggering as mentioned in the below screen shot
So I need to display the business elapsed percentage of SLA as 50% only not 50.11% in the Email Notification.
As currently I had configured the Email Notification as mentioned in below screen shot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 05:21 AM - edited 08-25-2023 05:26 AM
@Arjun Reddy Yer - Please include '%' after you do round of in the subject. I've highlighted where you need to include.
Math.round(current.business_percentage) + "%"
For your reference
Result
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 05:05 AM
Tried with below mentioned script but in the subject line "%" symbol is not getting displayed only in email body is getting displayed
Output:
Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 05:21 AM - edited 08-25-2023 05:26 AM
@Arjun Reddy Yer - Please include '%' after you do round of in the subject. I've highlighted where you need to include.
Math.round(current.business_percentage) + "%"
For your reference
Result
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2023 09:58 PM
@Arjun Reddy Yer - If your ask is answered, Please mark appropriate response as answer to help future readers.
Thanks & Regards,
Vasanth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 12:14 AM
Hi Arjun,
Please create a mail script named: roundofbusinesselapsed as below
(function runMailScript(current, template, email, email_action, event) {
// Add your code here
var roundingoff = current.business_percentage.split('%')[0];
template.print(Math.round(roundingoff));
})(current, template, email, email_action, event);
Call the mail script: ${mail_script:roundofbusinesselapsed}