Business Integration Solutions On Premise

This is a legacy version to extend the attachment generator on premise. Please refer to Extending Attachment Generation for the current version. Support will be dropped for this feature not earlier than version 20 (Expected Spring 2022)

Custom Report Connector (On Premise)

A Custom Report Connector enables customizations while generating a Report Attachment.

A Custom Report Connector is an extension point of the ATTACHMENTGENERATOR activity and can be used to implement customizations for Report Attachments. The concept of this extension point is a custom codeunit which is plugged into the standard framework without changing the standard code.

Standard Business Central programming skills are sufficient for writing a Custom Report Connector.

The custom codeunit implements a function which has the following fixed name and arguments.

Name Description
OnPrintReport This trigger is executed before the attachment is added to the message and it can be used to generate a report attachment with custom code. In this trigger you have access to the Record ID of the message which is currently processed. Example of this trigger are: print all due invoices for a specific customer / date.

It is important that the function has the same name and arguments. A runtime error occurs when the function name or arguments do not match.