how to get url of a form of table?

ganesh32
Kilo Contributor

can anyone help me out to get url of a form?.to use this url in action.setRedirectURL(url);

for redirection.

6 REPLIES 6

that didnt work

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ganesh,

Where do you want to get it? Use below:

Client Side: window.location.href or top.location

Server Side: gs.action.getGlideURI().toString()

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader