If the custom URL is not marked as the instance default, everything will work normally.Any reference to the instance name or instance URL will use the default (company.service-now.com), in notifications that contain links if you wish to use custom UR...
Here's a suggestion. I can be more assertive if I share how the call is made and the structure of the response payload. var nextUrl = null;
do{
var endpoint = nextUrl || 'initial endpoint';
nextUrl = null;
try {
var r = new sn_ws.RESTMessageV2...