Approve and Reject Button on email notification

Roshani
Tera Expert

Approve/reject button in email

Requirement is to create an email notification having 2 buttons approve and reject .On click of approve  button email would be sent to manager that request is approved or Rejected.

7 REPLIES 7

Omkar Mone
Mega Sage

Hello 

Please go through the blog below - 

https://community.servicenow.com/community?id=community_blog&sys_id=8080e8dc1babb380d01143f6fe4bcb0e

 

Hope this helps.

 

Regards

Omkar Mone

Hi Omkar,

I am not able to achieve the functionality on this blog.

 

Priyanka136
Mega Guru

Hi Roshani,

You're going to have to script something.  You have 2 options...

1)  Set up your UI action script to make an update to some field on each of those records so that it triggers an email notification.

2)  Trigger an event in your UI action.

Triggering an event really isn't a big deal though (and is a better option than making an unnecessary update to each of those records to do the same thing).  All you need to do is add your event in the event registry and then issue the single-line command.  Once you do that all of the configuration in your email notification is exactly the same except for changing your notification to respond to the event.

gs.eventQueue("your.event.name", current, gs.getUserID(), gs.getUserName());

Let me know if you have any question!!!

Thanks,

Priyanka