How to call System Property in scheduled job script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2018 11:04 PM
Hi,
How to call System Property in scheduled job script.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2018 01:38 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2018 01:40 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2018 01:43 PM
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