Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

mounika7675
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
Tera Sage

Hello @mounika7675 

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 @mounika7675 

 

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.