Strip Email Attachments Inbound Action

wmahmud1
Kilo Explorer

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)

28 REPLIES 28

no problem that's not an issue but can you explain me in details why you used that addquery

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.

Brian Lancaster
Tera Sage

Did you find a solution that worked?

my solution works... 🙂

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.