How to call System Property in scheduled job script

Sana10
Kilo Contributor

Hi,

 

How to call System Property in scheduled job script.

Regards,

3 REPLIES 3

Surya66
Mega Guru

Hi,

 

gs.getProperty() will always be the way you can retrieve a property on the server side.

In regards pulling a property on the client side, you have two options:

a) using a scratchpad and a display business rule to make the property available to the client as soon as a form is loaded

b) using a GlideAjax to call a script include which returns the property.

Prateek kumar
Mega Sage

Check this article from Mark

https://www.servicenowguru.com/system-definition/working-with-system-properties/


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

sachin_namjoshi
Kilo Patron
Kilo Patron

Please use gs.getProperty() function

 

var attachment_link = gs.getProperty('glide.servlet.uri');
gs.info(attachment_link);

 

https://developer.servicenow.com/app.do#!/api_doc?v=kingston&id=r_ScopedGlideSystemGetProperty_String_Object

 

Regards,

Sachin