Strip Email Attachments Inbound Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2015 11:45 AM
Hello -
I am trying to strip all attachments that get picked up by ServiceNow under 5000 bytes so we can avoid unecessary attachments of users signatures to records.
I have looked at some examples posted already and setup something similar. My issue is, the business rule on the sys_attachment table seems to run as I can see the script log showing the name of the file being aborted, but the email log itself, is not capturing the target (remains as empty) and not communicating back to the record. If i turn off this busienss rule, it works fine again.
Any ideas what the issue may be?
(see attached business rule detail)
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2019 07:19 AM
no problem that's not an issue but can you explain me in details why you used that addquery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2019 01:41 PM
Apoloiges I can't answer that for you as I'm not sure why it's there in the first place either, it just works as I copied the script from other places and mashed it together to make it work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2018 07:54 AM
Did you find a solution that worked?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2018 11:56 AM
my solution works... 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2018 12:51 PM
unfortunately the images in our email signatures are larger then 5000 and doing some testing increasing the size bigger then that could cause legitimate screenshots from being attached.