Need help on business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 02:52 AM
Hi,
I had a requirement to restrict attachment upto 25 mb on few tables. This functionality works fine it does restrict user from uploading file more than 25 MB but it temporary add empty file (adding as screenshot) which disappears when I reload the form.
Business Rule:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 03:00 AM
your business rule should be on sys_attachment table
Seems you have some script include function getting called from "Hnk_project_process"
Did you debug that?
If my response helped please mark it correct and close the thread so that it benefits future readers.
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-13-2025 03:04 AM
@Ankur Bawiskar
Yes I'm getting proper return from my script include. This business rule is written on attachment table ,before and insert is condition.
Script Include is generic and client callable. Below are my functions :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2025 03:09 AM
so is it creating a blank file everytime and still showing error message all the time?
If my response helped please mark it correct and close the thread so that it benefits future readers.
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-13-2025 03:14 AM
yes and that file is not saved anywhere I believe when I reload the form that empty file disappears