Is it allowed to modify system properties or add multiple values to system properties?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2023 04:17 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2023 04:27 AM
Hi Uday,
Always it is better to leave OOB stuff untouched. Would you mind sharing the exact use case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2023 04:31 AM - edited ‎11-24-2023 04:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2023 04:52 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2023 04:39 PM
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