Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

gs.getProperty('glide.servlet.uri') is not working

Kartik Magadum
Kilo Sage

Hello all

I used gs.getProperty('glide.servlet.uri') in one of my script and it's not working as expected, it's returning like: 

https://<instance-name>/not_found.do?page_url=https://<instance-name>/

 

And we are observing this issue after upgrading to Xanadu. 

 

also pls refer the script:

var sys_id = current.sys_id;

var url = gs.getProperty('glide.servlet.uri')  + "<table-name>?sys_id="+ current.u_return_no + "&sysparm_record_target=<table-name>&sysparm_record_list=";

action.setRedirectURL(url);
action.setReturnURL(current);

//table-name - actual table name

 

Any assistance in resolving the issue would be greatly appreciated. 

Thanks and Regards

Kartik Magadum

7 REPLIES 7

SN_Learn
Kilo Patron
Kilo Patron

Hi @Kartik Magadum @Surabhi7 ,

 

Please try the below code and check:

var sys_id = current.sys_id;

var url =   '/' + "<table-name>?sys_id="+ current.u_return_no + "&sysparm_record_target=<table-name>&sysparm_record_list=";

action.setRedirectURL(url);
action.setReturnURL(current);

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

Thanks for the response. for my issue i got a response from SN support that its a platform issue from Xanadu Patch 3 and is going to be fixed in Patch 4.

 

 

Yes, that is correct. We have also encountered the same issue and as a workaround we applied the fix as below:

 

var url = '/' + '<table_name>' + '.do?sys_id=-1&sysparm_query=task_number='+parent.getValue('sys_id');
gs.setRedirect(url);

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.