How to call email script from Button in email notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 12:00 AM
Hi Team,
I've an requirement, when I click on button on email it should send email to our instance. I've email script and script inculde in place. But how to call email script in button.
Notification Preview:
Source code:
Email script that needs to be called:
Script include to trigger email:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 12:12 AM
Hey,
Your question is not clear, I think you have referred to community article to build this.
Why do you want to call email script in the button? your email script itself created the button, and once you click on the button in Preview notification for which you have attached, it is going to launch the email agent that you are using and send the reply to your instance.
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 12:19 AM
Hi,
You can check out the below article to implement your functionality.
https://community.servicenow.com/community?id=community_blog&sys_id=8080e8dc1babb380d01143f6fe4bcb0e

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 12:54 AM
Hi,
Considering you have above working i.e. on click of button mail is generated with text as passed in script include. All you need is an Inbound Action to process the mail that will be received. Did you configure it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2022 01:02 AM
Hello Jaspal,
The email is showing just word, but button it is not showing. My question is I have to have a button "Reject Resolution" and when I click on that it should send email. Reject resolution should be as name only because we don't want to upload images, we just wanted to have names, so we can translate in other notifcations, if it is an image we can't have translations