Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

GlideSPUtil in Service Portal

Bhagya Lakshmi
Mega Guru

Hello Team,

Good Afternoon to all,

I want to know about new GlideSPUtil().getPageUri(). What is the use of this method? We can not use GlideSPUtil in scoped applications. What is the alternative to this method?

2 REPLIES 2

Jace Benson
Mega Sage

That's a new one to me.  I try to keep a running list of all the undocuemtned and documented methods here.  So I'll look into this.

 

I confused the class you mentioned with some other classes.  That appears to be only use for that class;

It appears that function is an alias for gs.getUrlOnStack();

find_real_file.png

Which appears to just;

"Gets the current URI for the session." according to https://docs.servicenow.com/bundle/london-application-development/page/app-store/dev_portal/API_reference/glideSystemScoped/concept/c_GlideSystemScopedAPI.html