Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

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

@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  ||  ✨ 10x 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. 

****************************************************************************************
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
******************************************************************************************

@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  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader