How can i restrict file type in the attachment for the specific catalog item

Anupriya_11
Tera Contributor

Hi  All,

I have requirement to restrict .exe and msi file types in the   attachment variable for specific catalog item. Can someone help me on this to how to restrict on this.

 

Thanks

3 REPLIES 3

Kieran Anson
Kilo Patron

Hi,

If you use an attachment variable, you can use the allowed_extensions attribute to control allowed file types within that field.

https://www.servicenow.com/docs/csh?topicname=attachment.html&version=latest 

Pooja58
Kilo Sage

Hi @Anupriya_11 ,

 

Open the dictionary entry for the attachment variable.

If Variable attributes field is not on the form, edit form view and add it.

mention allowed_extensions=txt;pdf. which all file types you want to allow. and save the changes.

 

Pooja58_0-1740732541471.png

 

If this answers your query please mark it as helpful/correct

 

Best Regards,

Pooja

Ankur Bawiskar
Tera Patron
Tera Patron

@Anupriya_11 

you can use approach shared by @Kieran Anson 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader