ServiceNow Store constants in a script include
EXAMPLE 1:
var OSB_Libraries_ClearSkye = Class.create();
OSB_Libraries_ClearSkye.prototype = {
CONST_DAYFORCE_ENVIRONMENT:gs.getProperty('x_cls_clear_skye_i.clearskye.environment.dayforce'),
initialize: function() {
},
getEnvSysID_Dayforce: function(){
return (this.CONST_DAYFORCE_ENVIRONMENT);
},
EXAMPLE 2:
you can then grab a const from within another script include like so:
var sExistSource=Dynatrace_CONST.DYNATRACE_EXISTING_SOURCE

Comments
Post a Comment