Attachment should allow only Excel files in Record producer

thaduri sai
Tera Contributor

Hi Team,

 

We have a record producer in OOB attachment. we have to allow only excel files. How to achieve this?

1 ACCEPTED SOLUTION

Vrushali  Kolte
Mega Sage

Hello @thaduri sai ,

 

You can achieve this requirement by populating variable attribute of attachment variable type as "allowed_extensions=xls;xlsx".

VrushaliKolte_0-1723445013098.png

 

Please refer below link for more info -

https://www.servicenow.com/community/developer-forum/how-to-validate-attachment-to-accept-only-jpg-f...

 

If my answer solves your issue, please mark it as Accepted ✔️& Helpful👍!

View solution in original post

7 REPLIES 7

thaduri sai
Tera Contributor
 

Rohit99
Mega Sage

Hi @thaduri sai,

 

You may follow the following link :

https://www.servicenow.com/community/itsm-forum/check-attachment-file-type-client-script/m-p/619137

 

Please mark my response as correct and helpful if it helped solved your question.

 

Thanks,

Rohit Suryawanshi

 

 

 

Vrushali  Kolte
Mega Sage

Hello @thaduri sai ,

 

You can achieve this requirement by populating variable attribute of attachment variable type as "allowed_extensions=xls;xlsx".

VrushaliKolte_0-1723445013098.png

 

Please refer below link for more info -

https://www.servicenow.com/community/developer-forum/how-to-validate-attachment-to-accept-only-jpg-f...

 

If my answer solves your issue, please mark it as Accepted ✔️& Helpful👍!

Hi @Vrushali Kolte ,

 

Thanks for your reply.

 

Attachment is not a variable type in this form...like in the form Attachment. Attached screenshot for your reference.

1000094312.jpg