Set Variable attribute "allowed_extensions" from sys_property

martinschoenfel
Kilo Guru

Hello,

i have a catalog item with an input variable of type "attachment"

To be more flexible in the produktion system i want to set the allowed file types via a system property.

is it possbile to set the variable attribute "allowed_extensions" to any value which is stored in a system property?

martinschoenfel_0-1698246691072.png

 

Regards

Martin

 

3 REPLIES 3

Paul Curwen
Giga Sage

Hi,

 

The allowed file types are stored in System property: 

 

glide.attachment.extensions

 

See: https://docs.servicenow.com/bundle/vancouver-platform-security/page/administer/security/reference/re...

 

If helpful please mark as Helpful/Correct

 

 

***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Hi Paul,

The mentioned property is for the whole instance. But i want to restrict a catalog item variable with the variable attribute "allowed_extensions"

Following example works:

allowed_extensions=xls;xlsx;csv