gs.action.getGlideURI().get('x_referer')

swami_n
Kilo Contributor

gs.action.getGlideURI().get('x_referer') - Post Istanbul upgrade getGlideURI is not returning x_referer anymore ..Because of this i am unable to access parameters from URL in a map pge script ? I will appreciate your insights on this.

Thanks

Swami

9 REPLIES 9

Interesting. I'm out of ideas at the moment. If nothing else comes up on the community, I recommend reaching out to customer support. I'll be interested to hear what they have to say.


HI Service Portal - ServiceNow


Contact Support | ServiceNow


Hi,

 

I using gs.action.getGlideURI() in the business rule for checking if the url is passing from portal end.

It checks correctly but im getting Javascript NULL point exception error in logs.

Here is my code.

var flag=gs.action.getGlideURI().toString().indexOf('/sp');
if(flag==-1)

If returns true then script won't run further else it will run.

Output wise I get proper results but logs shows JJavaScript NULL point exception and script evaluator error on this.

 

I want my script not to execute from portal side.

Any help or pointers how to avoid will be helpful.

 

 

kjetil
Kilo Contributor

Did you get any answer to this issue?


Kenny Wimberly
Tera Guru

How about something like this:



var map = new GlideURI();


var refer = map.get('x_referer');


layla
Giga Expert

Hi all,



Did you get any fix for this issue?


I'm encountering the same problem