How to create buttons for approval and rejection email (The easiest way)

Yongding Sun26
Tera Contributor

I have found the best and easier way to create buttons for approval and rejection email. For those who does not like default "Approve RITM" links. Here is the way.

 

1. Go to sysevent_email_action.LIST

2. Copy the out of box approval email notification

3. Under "What it will contain"

4. Message HTML

5. CLICK "<>" icon

6. In the source code paste the following

7.<div style="font-family: lato,arial,sans; line-height: 24px; background-color: #28a745; color: #ffffff; padding: 10px 18px; text-decoration: none; border-radius: 4px; font-size: 12pt; display: inline-block;">${mailto:mailto.approval}</div>

 

<div style="font-family: lato,arial,sans; line-height: 24px; background-color: #dc3545; color: #ffffff; padding: 10px 18px; text-decoration: none; border-radius: 4px; font-size: 12pt; display: inline-block;">${mailto:mailto.rejection}</div>

 

8.Enjoy!

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Yongding Sun26 

Thanks for sharing.

Remember it's not best practice to update/touch OOTB components as those will get skipped during upgrade.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@Yongding Sun26 

Thanks for sharing.

Remember it's not best practice to update/touch OOTB components as those will get skipped during upgrade.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi, I stated to copy the OOTB email notification in my step. Thanks