E-mail notification script Button not redirecting me to the respective record

anvitha ash
Tera Contributor

Hello 

 

I have created e-mail notification script, to create a button and using in inbound actions. On click of button it is not redirecting me to the concern page

IMG_20250124_234422.jpg

 

 

It is populating the URL twice as mentioned in screenshot. 

Ex: dev111.service-nos.com/dev111.service-now.com/api/now...........

 

IMG_20250125_005546.jpg

 

Could someone help me where I'm doing mistake 

9 REPLIES 9

We typically achieve this using a link (or a button) in the body of the email to send an email to the instance, then process the email with an inbound email action (see: https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/administer/notification/c...).

 

The email script would look something like this:

template.print('<a href="mailto:' + gs.getProperty('instance_name') + '@service-now.com?subject=Accept&body=Solution%20Accepted%0ARef:' + email.watermark + '">successful</a>');

 

@Sheldon  Swift 

 

subject=Accepted&body=Solution%Accepted%0Ref . What does this mean in not able to get this 

I'm not sure if mailto links work in the forum here...try this: successful

Viraj Hudlikar
Giga Sage

Hello @anvitha ash 

Do check my response over thread as this is same duplicate question asked.

Re: How to add button in email notification - Page 3 - ServiceNow Community

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Hello @anvitha ash 

 

I believe you are doing well.

 

Did you check the response over thread I already shared. https://www.servicenow.com/community/developer-forum/how-to-add-button-in-email-notification/td-p/31...

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct so it will benefit other community users.

 

Thanks & Regards
Viraj Hudlikar.