The CreatorCon Call for Content is officially open! Get started here.

How to display the business elapsed percentage of SLA as round number in email notification

Arjun Reddy Yer
Tera Guru

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

ArjunReddyYer_1-1692943528535.png

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

ArjunReddyYer_2-1692943674308.png

 

 

1 ACCEPTED SOLUTION

@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) + "%"

VasantharajanN_0-1692965994242.png

 

For your reference

VasantharajanN_1-1692966369621.png

Result

VasantharajanN_0-1692966343931.png

 


Thanks & Regards,
Vasanth

View solution in original post

13 REPLIES 13

@Arjun Reddy Yer - Please use email.setSubject() in your email script to set the right subject.

VasantharajanN_1-1692952366850.png

 

Result

VasantharajanN_0-1692952348453.png

 


Thanks & Regards,
Vasanth

Do I need to mention that email script in subject of email notification or just mention in email content 

@Arjun Reddy Yer - Not required. Just include the mail script which override the subject that you set in the email notification

VasantharajanN_0-1692954865077.png

 


Thanks & Regards,
Vasanth

but it should display with Target SLA which is Response or Resolution in subject line

ArjunReddyYer_0-1692956967745.png

 

@Arjun Reddy Yer - Please use "current.sla.target.getDisplayValue()" in the email notification script to set whether it's Response/Resolution. Refer to the screenshot below 

VasantharajanN_1-1692960781277.png

 

 

VasantharajanN_0-1692960757560.png

 


Thanks & Regards,
Vasanth