How to add approve or rejcet button in mail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I am facing one issue that while adding button in the email template.
Problem statement : -
I want to change the RITM state via email once end user will click on approve or reject from the mail it should update the state on the RITM table.
How can i achieve this.
Below is the process which is currently i am following :-
Created email template and add buttons in that email and for the action I have created UI action for approve or reject.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @shubhamgoch
@Jaspal Singh solution 100% work here.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Please follow the following blog:
https://www.servicenow.com/community/itsm-blog/approve-reject-button-in-approval-notification/ba-p/2....
Please mark helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you didn't share what you configured and what debugging did you do
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @shubhamgoch ,
Add an email script as follows: ${mail_script:email.approval.btn}, based on the this configure the notification..
Upload the image for the approve button in System UI > Images, and my email script looks like this:
(function runMailScript(/* GlideRecord / current, / TemplatePrinter / template,/ Optional EmailOutbound / email, / Optional GlideRecord / email_action,/ Optional GlideRecord */ event) {
var img = "btn_aprove.png"; var response = "approve"; template.print(renderMailtoButton(img, response));
})(current, template, email, email_action, event);
If you find this helpul mark as helpul...
