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 ACCEPTED SOLUTION

@RajeshS45028713 

Glad to know that my blog helped you

Adding latest attachment from record to the outbou... - 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

View solution in original post

3 REPLIES 3

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

Hi  @Ankur Bawiskar ,

Thanks for the response.

with the help of this post i am able to apply my filter condition as per requirement.
Adding latest attachment from record to the outbou... - ServiceNow Community

@RajeshS45028713 

Glad to know that my blog helped you

Adding latest attachment from record to the outbou... - 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