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

21 REPLIES 21

@Debasis Pati 

the OOTB Reply type Inbound action on incident won't copy the attachments to target record

So you can write script in there

AnkurBawiskar_0-1760524367031.png

 

💡 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 dis see this also even it is not copying there are no script here for that i could see it's getting copied to the target record also i have modified the script and tried but no luck 

also i feel we can write script in "sys_email_attachment" table to achieve this correct me if i am wrong.

@Debasis Pati 

Hope you are doing good.

Did my reply answer your question?

💡 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

Hey @Ankur Bawiskar ,
i tried the inbound email action to not to copy even with tat script to copy attachment or not it always copies .

also i feel we can write script in "sys_email_attachment" table to achieve this correct me if i am wrong.

@Debasis Pati 

are you not able to copy the attachments from email record to target?

once you are able to do that, then you can handle deletion logic

💡 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