Get instance URL in server side scripting

Server URL is stored in following property.

gs.getProperty('glide.servlet.uri')

Note 1: This property does not exists in the sys_properties table, but hard coded in javascript execution scope.

Note 2: The property may return an unpredictable value while running on the on-premise instances.

Andre Kosak
ServiceNow Developer, Freelancer

Develop whatever!

comments powered by Disqus

Related