Allow only excel files as an attachment.

Annie10
Tera Contributor

Hello,

I have attachment type variable on the RITM that I would like user to attached only excel file to the record. If other file type is selected as an attachment, then it should show pop-up message

 

Annie10_0-1702607155336.png

Could some please help?  

Thank you

 

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@Annie10 

since you only want excel in the attachment variable add this in variable attributes

allowed_extensions=xls;xlsx

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

Hi @Ankur Bawiskar 

For learning purposes, is it possible to modify the error message?

Annie10_0-1702656107924.png

 

 

My knowledge said no. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

@Annie10 

Nope

Thank you for marking my response as helpful.

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