null.service-now.com’s server IP address could not be found. UI Action

Madala Chaitany
Giga Guru

Hi,

 

When I'm checking as admin it's working fine, when I impersonate a user and check it getting the below error when clicking on the UI Action Screenshot 2024-08-22 at 6.31.58 PM.png

Here is the Script

UI action Script

function showCatalogPopUp() { 
var include = new GlideAjax('Instance_Name_Property_call'); 
include.addParam('sysparm_name', "getSysProperty"); 
include.getXMLAnswer(property); 

function property(answer) { 
var evn = answer; 
var sys_inc = 'https://' + evn + '.service-now.com/AskIT?id=nr_sc_cat_item&sys_id=7841d2891b09ca94145321b6b04bcb57&sys_inc=' + g_form.getUniqueValue(); 
var messageModal = new GlideModal('x_tapbs_paperless_TAK_Paperless Workflow Catalog popup'); 
messageModal.setSize(800); 
messageModal.setTitle("Sign PDF"); 
messageModal.setPreference('sysparm_inc', sys_inc); 
messageModal.render(); 
} 
} 

Script Include

var Instance_Name_Property_call = Class.create(); 
Instance_Name_Property_call.prototype = Object.extendsObject(global.AbstractAjaxProcessor, { 

getSysProperty: function() { 
var property = gs.getProperty('instance_name'); 
return property; 
}, 

type: 'Instance_Name_Property_call' 
}); 

 

Thanks in advance,

Chaitanya

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Madala Chaitany This looks like an ACL issue to me. Please use access analyzer to check if the user has the right role to access the page. 

nr_sc_cat_item

Also, check if the client callable script include has correct ACLs and read roles assigned so that user can access it.

Instance_Name_Property_call

Please refer to https://docs.servicenow.com/bundle/xanadu-platform-security/page/integrate/identity/concept/explore-... to know more about access analyser.

View solution in original post

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@Madala Chaitany This looks like an ACL issue to me. Please use access analyzer to check if the user has the right role to access the page. 

nr_sc_cat_item

Also, check if the client callable script include has correct ACLs and read roles assigned so that user can access it.

Instance_Name_Property_call

Please refer to https://docs.servicenow.com/bundle/xanadu-platform-security/page/integrate/identity/concept/explore-... to know more about access analyser.

@Sandeep Rajput Thank You It have worked