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 not drop for this feature before 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. Use it to implement customizations for report attachments. The concept is a custom codeunit 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 with the following fixed name and arguments:
| Name | Description |
|---|---|
| OnPrintReport | This trigger executes before the attachment adds to the message. Use it to generate a report attachment with custom code. In this trigger you have access to the Record ID of the message currently being processed. Example uses: print all due invoices for a specific customer or date. |
The function must have the same name and arguments. A runtime error occurs when the function name or arguments do not match.