Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to exclude specific Case attachments from email notifications

RajeshS45028713
Tera Contributor

Hi Community Members,

What is the supported/recommended ServiceNow approach to send only selected Case attachments in an email notification based on a custom True/False field on the sys_attachment table?

For example:

  • u_not_include_in_the_email = false → Include the attachment in the email

  • u_not_include_in_the_email = true → Do not include the attachment in the email

I am using a Case email notification and want to keep the excluded attachments on the Case for record purposes.

Could anyone please suggest the recommended approach or API for this requirement?

Thanks!

1 REPLY 1

Ankur Bawiskar
Tera Patron

@RajeshS45028713 

that checkbox will include ALL OR Nothing

2 Approaches

1) don't include attachments directly, instead use email script and include links to file for what you want

OR

2) see this custom approach

Adding attachments to Email - ServiceNow Community

💡 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  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader