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.

How to Fetch current URL from script Include

ManideepN
Tera Contributor

Hi,

I need to get URL parameter in script include.this script include will trigger by variables reference qualifier.

I used getProperty("glide.servlet.uri") and gs.action.getGlideURI() but not able to get the current URL.

Can any one let me know how it can be done.

Thanks,

Manideep Nadimpelli.

1 REPLY 1

Sharique Azim
Mega Sage

try:

gs.getSession().getStack().get(0);