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

Sheldon  Swift
ServiceNow Employee
ServiceNow Employee

Hi @anvitha ash - You need to set your protocol (e.g. 'https://' + instanceName + '...). Also, you forgot to redact the instance name at the bottom of your second screenshot.

@Sheldon  Swift Thanks 

 

Now the redirect is working but, it is asking for credentials. But this should not be the case. It should redirect to the URL without credentials 

This is the default behavior when accessing the Table API through a browser. What's the use case?

@Sheldon  Swift 

 

1. Create notification, calling email script there

2. In email script added button called "successful " as mentioned in the screenshot above 

3. Create inbound action, when user clicks on the button "successful" it should close the RITM record 

 

Usecase:

When notification triggered to the user, under the notification user would be having button called "successful" and once user click on the button it should close complete the RITM 

 

Notification create on : Ritm table

Inbound created on : RITM table