Is it allowed to modify system properties or add multiple values to system properties?

uday_kumar_b
Tera Contributor

Is it allowed to modify system properties or add multiple values to already existing system properties?
Here can the value have 'onhold' as well as an other value?

Do we need to create system property to have another value?

5 REPLIES 5

Jaspal Singh
Mega Patron
Mega Patron

Hi Uday,

Always it is better to leave OOB stuff untouched. Would you mind sharing the exact use case.

Danish Bhairag2
Tera Sage
Tera Sage

Hi @uday_kumar_b ,

 

Yes we can store multiple values in a system property but again it depends upon the type of property u have created.

For eg if u have a property of type string u can store multiple comma seperated values in a single property.

Or u can create a JSON format inside the same n store key value pair.

Or u can keep only 1 value.

So totally depends upon the requirement & the developer.

Also yes u can create multiple properties as well.

Depends upon developer to developer how they approach for the solution.

 

Note : the above should be a done for a custom property & not OOTB.OOTB properties should never be touched.

 

Thanks,

Danish

 

Hi @Danish Bhairag2 the property type is choice list and can you be more clear on how to add multiple values in choice list property. FYI, the property name: evt_mgmt.alert_closes_incident. You can also find the same in attachments in this main post.

Hi @uday_kumar_b ,

 

If u want to store multiple values in a single property then I would recommend u to use string type & store the values as comma seperated.

 

In order to use those values u can do something like this

var value = gs.getProperty('test');

 

value = value.split(',');

 

for(var i= 0;i<value.length;i++){

gs.info(value[i]);

}

 

Thanks,

Danish