We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Get the current browser url in UI Builder

Hari1
Mega Sage

Hi,

Is there a way how we can get the current browser full url in UI Builder.

I have tried using gs.getProperty('glide.servlet.uri'); I am only getting the https://<instance-name>.service-now.com/ But i need the full url.

Thanks.

1 REPLY 1

Paul Curwen
Giga Sage

Use this is a Client Script:  api.context.props.<urlparmname>

 

 

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul