Business rule on attachment table not triggered when an attachment is created from inbound email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-06-2025 07:19 AM
I have a requirement where i need to send the attachment to 3rd party tool. for this i have created an insert after BR on sys_attachment table which is working fine when the files are added manually but when an inbound email creates an attachment ,the BR is not triggered at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-06-2025 12:14 PM
Hi @Rehan_ahmad ,
Please first check if attachment is reached to 'sys_attachment' table or not, when any attachment comes with email it first gets stored in 'sys_email_attachment' table before SN process it and attaches to the target record. May be your attachment remained in 'sys_email_attachment' only. That could be the issue or reason why the BR did not triggered.
If you see the attachment is sitting there in 'sys_email_attachment' table only check the respective 'Action' field value whether it is 'Attached to target record' and if the value is other than 'Attached to target record' then obviously the attachment could made it to the 'sys_attachment' table.
If this address your question, please don't forget to mark this response correct by clicking on Accept as Solution and/or Kudos.
You may mark this helpful as well if it helps you.
Thanks,
Animesh Das
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-11-2025 07:32 AM
The attachments are linked to the incident record in sys_attachment table but the business rule is not triggering.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-11-2025 08:01 AM
share the business rule condition screenshot and script
May be it's triggering but failing somewhere in the script?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader