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 get the URL in Server Side

shaik_irfan
Tera Guru

Hi,

 

can anyone please help me how to get the URL using server side script

 

I tried GlideURL but i think this is client side api can anyone what method to use from server side to retireve the url

1 ACCEPTED SOLUTION

djohnson1
Mega Guru

Shaik, 

    Try the code below on server-side

// User's URL
gs.getProperty("glide.servlet.uri") + gs.action.getGlideURI();

//Session URL
gs.getSession().getUrlOnStack();

Thnaks, 

Derrick Johnson

View solution in original post

2 REPLIES 2

djohnson1
Mega Guru

Shaik, 

    Try the code below on server-side

// User's URL
gs.getProperty("glide.servlet.uri") + gs.action.getGlideURI();

//Session URL
gs.getSession().getUrlOnStack();

Thnaks, 

Derrick Johnson

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Try this

gs.getProperty("glide.servlet.uri") + gs.action.getGlideURI()

-Anurag

-Anurag