How to call email script from Button in email notification

Chaiatnya
Tera Contributor

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:

find_real_file.png

 Source code:

find_real_file.png

 

Email script that needs to be called:

find_real_file.png

 

Script include to trigger email:

find_real_file.png

 

 

4 REPLIES 4

Aman Kumar S
Kilo Patron

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 🙂

Best Regards
Aman Kumar

suvro
Mega Sage
Mega Sage

Hi,

 

You can check out the below article to implement your functionality.

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

Jaspal Singh
Mega Patron
Mega Patron

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?

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