PRB: When using the SDK the Additional Attachments are not attached to the sent email correctly Print ZTN4568 This Zetadocs technical note applies to: Zetadocs Delivery and Capture Extension for Business Central - all versions Symptom This problem occurs when using the OnBeforeDevilery SDK events AddOrUpdateAdditionalAttachments() function to add additional attachments to the sent email using, the additional attachments are not always attached. When performing a batch send with the consolidate emails enabled then multiple copies of each attachment are sent, or when doing a single send the additional attachments are not attached to the sent email. Cause This problem was caused by a bug after an update for the OnBeforeDelivery SDK event to now require an extra parameter (the DocumentLink) when calling AddOrUpdateAdditionalAttachments() to ensure that only 1 copy of the additional attachments are sent. The problem is if this parameter is missing the attachments don't get added to the email. Resolution As a workaround upgrade your Zetadocs Delivery and Zetadocs Capture extension to the latest version (at least v2.0.21306.3) and also update your per tenant extension to now include a DocumentLink when adding the Additional Attachments, see our SDK example. Alternatively, turn off the Consolidate Emails and Combine Documents options in the Zetadocs Report Settings and turn off Combine PDF in the Zetadocs System Rules. Status Equisys is aware of this issue and will update this technical note when a solution has been found. Last updated: 1st Dec 2021 (MP) Keywords: Delivery, SDK, OnBeforeDelivery Business Central Related articles FIX: Item tracking is no longer a requirement on journal items in Business Central with Zetadocs Extension installed HOWTO: Configure Business Central to ensure the Document date doesn't default to the Processing date when using AP Automation INFO: How to correctly configure Zetadocs Document Queues to avoid simultaneous processing of the same SharePoint folder PRB: 'The Report Layout does not exist' error shown after upgrade to Business Central 2023 Wave 2 HOWTO: Upgrade the Zetadocs Extension for Business Central On-Premise