The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Business rule on attachment table not triggered when an attachment is created from inbound email

Rehan_ahmad
Tera Contributor

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.

3 REPLIES 3

Animesh Das2
Mega Sage

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

Hi @Animesh Das2 

 

The attachments are linked to the incident record in sys_attachment table but the business rule is not triggering.

Ankur Bawiskar
Tera Patron
Tera Patron

@Rehan_ahmad 

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.

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