gs.action.getGlideURI().get('x_referer')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2017 03:52 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2017 07:27 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2018 03:51 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2017 08:05 AM
Did you get any answer to this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2017 05:16 AM
How about something like this:
var map = new GlideURI();
var refer = map.get('x_referer');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2017 02:53 AM
Hi all,
Did you get any fix for this issue?
I'm encountering the same problem