How to format Target URL of an Interceptor when navigating to custom table on a different SN instance

shawnbaar
Giga Expert

Good afternoon,

I have a requirement to alter the Target URL of an Interceptor's Answer (sys_wizard_answer) to redirect a user to a different SN instance.  We use a common instance with an interceptor on the Incident.do page.  Any external link has a target URL of:

https://instancename.service_now.com/incident.do

Since those external instances are typically individual customers, that works well.  Now I have a requirement to direct it to a specific table (u_incident_customername) where the Incident table was extended for each of 2 customers.  I have tried replacing the "incident.do" with "u_incident_customername", but it always directs me to the base Incident table.

How can I format the Target URL string to get me to the custom incident table?

 

Thank you,

Shawn

1 ACCEPTED SOLUTION

Hi Shawn,

 

This should work for you

 https://<instance name>.service-now.com/nav_to.do?uri=u_incident<client name>.do?sys_id=-1

 

Please mark my answer correct/helpful if it helped you solve your issue.

-Anurag

-Anurag

View solution in original post

5 REPLIES 5

Anurag Tripathi
Mega Patron
Mega Patron

Hi Shawn,

 

Please refer to this, basically yoi should navigate to tableName.do? followed by sysparm_query= and list the predefined columns(i have a feeling you need domain, if your instance is domain separated)

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/use/navigation/reference/r_NavigatingByURLExamples.html

 

Please mark my answer correct/helpful if it helped you solve your issue.

-Anurag

-Anurag

shawnbaar
Giga Expert

Good afternoon Anurag

I have tried a number of variations of the URL to the external instance.  The problem is not in getting to the other instance, it is in getting the extended incident table's form to open.  I have 2 custom tables (u_incident_<client name>) that were extended from the base Incident table/form.  So I want to go to https;//<instance name>.service-now.com/u_incident<client name>.do?sys_id=-1.  This hopefully opens a new record on the extended table in the new instance, or should.  Instead, I am taken to the base Incident table.

I saw in a different location a different string:

ext_inc_redirector.do?sysparm_uri=<instance name>.service-now.com&sysparm_table=u_incident_<instance name>

 

but that doesn't seem to work either.  It does seem as though this should be fairly straightforward, but it isn't working the way I thought it would.

I did look at the article you provided and it did give me a few more options to try, but all seem to direct to the external instance's base Incident form still

Hi Shawn,

 

This should work for you

 https://<instance name>.service-now.com/nav_to.do?uri=u_incident<client name>.do?sys_id=-1

 

Please mark my answer correct/helpful if it helped you solve your issue.

-Anurag

-Anurag

Did you try this yet?

-Anurag