Avoid attachments less than 10kb to get attached to incidents received via reply email to servicenow

Debasis Pati
Tera Guru

Hello Everyone,
When servicenow receives emails as reply we have a inbound email action it by default oob attaches the attachments to the target incident/record .
Now we wanted to avoid less than 10kb files to get attached to the target record.
for images to avoid less than 10kb we have oob property "glide.email.inbound.image_sys_attachment.filter.minimum_bytes" but what about other file types how we can avoid that what ever attachments are coming in emails?

@Ankur Bawiskar any suggestions?

Regards,
Debasis

20 REPLIES 20

Ankur Bawiskar
Tera Patron
Tera Patron

@Debasis Pati 

I believe you will have to handle this using before insert BR on sys_attachment and no other way

OR

In your inbound action do this

-> let all files be copied from email record to target

-> then query sys_attachment for the target and see which files are small

-> iterate and delete that attachment

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes Business rule but how i can ideantify from business rule that this attachment came from the email as a reply.
Secondly if in inbound action do i need to create one inbound action or how beacuse this functionality is oob.
@Ankur Bawiskar Please guide here.

@Debasis Pati 

you can identify the OOTB or custom inbound action on incident which is configured to handle Reply and add script there.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @Ankur Bawiskar ,
I have a simple inbound action which updates the target incident's comments other inbound actions are not active servicenow oob they built something else to do this OOB.