Attachment file rename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 02:49 AM
when i try to attach a attachment on incident form the attachment file name system has to check if it's vaild file name or not?
Name convention –
Original_file_name+_+USERID+_+YYYYMMDD.original file Extension
Example : ABCD_siva_20200506.docx
so kinldy help with the script
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 02:52 AM
Hi Reddy,
have before insert business rule on sys_attachment table and condition as table name is incident
in the script check the file name and if invalid use current.setAbortAction(true)
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 02:53 AM
Hi bisireddyyou
This thread will help you
Please Mark Correct and Helpful
Thanks and Regards
Gaurav Shirsat