Attachment not getting attached in the Email notification.

Chitra23
Tera Contributor

Hi,

I have a requirement to email reports to the requestor.  I have  a custom table table in which the requestor can select the report name, type, frequency etc., upon clicking save on this (custom table form) a record will be created in Sysauto_script table (scheduled job) which will then call a subflow which in turn will fetch report from a 3rd party application and attach it to the corresponding record in Custom table. The Subflow then triggers an event in which this custom table record is mentioned as the instance. I have created a notification record to send email when this event is triggered. I have checked the "include Attachments" checkbox in the notification record. Everything is working fine but the email notification does not contain the attachment. I have created a flow chart diagram to understand this better.

3 REPLIES 3

Ratnakar7
Mega Sage
Mega Sage

Hi @Chitra23 ,

 

There are a few things you can check to troubleshoot this issue:

  1. Check the notification record: Make sure that the "Include Attachments" checkbox is checked in the notification record. Also, make sure that the attachment field is mapped correctly in the email template.

  2. Check the email template: Make sure that the email template includes the attachment field using the correct variable. The variable should be something like ${attachment}, depending on how the attachment field is named in the custom table.

  3. Check the file type: Make sure that the file type of the attachment is supported by the email client that the requestor is using. Some email clients may block certain file types for security reasons.

  4. Check the email size: Some email servers or clients may have limits on the size of attachments that can be sent. Make sure that the attachment size is within the allowed limits.

  5. Check the email logs: Check the email logs to see if there are any errors or warnings related to the attachment. This can help you identify any issues with the email delivery.

Thanks,

Ratnakar

Hi Ratnakar,

Thanks for the reply. I've solved the problem. The table name was not being passed while creating the event record, only the sys_id was passed. I'm passing the table name and attachments are getting attached. 

Jagadish Sanadi
Kilo Sage

Hi Chitra, Include custom table and try again