Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2015 11:59 AM
I found this, or the starters for this on here somewhere, but we have this
in sys_attachment, create a Before Insert Business rule
The condition is
parseInt(current.size_bytes) <= 1800 && current.content_type.toLowerCase().indexOf('image') != -1 && current.table_name.toLowerCase().indexOf('zz_yy') == -1 && current.table_name.toLowerCase() != 'sys_email'
and the script of
current.setAbortAction(true);
//gs.log(current.file_name + ' : insert aborted');
Cheers