--- title: "ATTACHMENTGENERATOR activity" slug: "bc-attachmentgenerator-activity-setup" tags: ["BC", "BIS", "Business Central", "Business Integration Solutions", "Concept", "Task"] updated: 2026-06-25T09:59:07Z published: 2026-06-25T09:59:07Z canonical: "docs.staedean.com/bc-attachmentgenerator-activity-setup" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # ATTACHMENTGENERATOR activity In Business Integration Solutions, use the **ATTACHMENTGENERATOR** activity to create attachments based on Microsoft Dynamics 365 Business Central objects or to add files as an attachment to a message. ## Usage Use this activity to attach and send various files or Microsoft Dynamics 365 Business Central reports together with notifications; for example, sales invoices, credit limit changes, or purchase receipts. The **Attachment Generator** activity works best with endpoints capable of handling message attachments, such as the **Outlook Writer** or **SMTP Writer** endpoints. ## Concept The attachments are written to the attachment collection of a message. A supporting endpoint picks up this collection to send the complete message. ## Using ATTACHMENTGENERATOR See **Extending attachment generation**. In the latest version, when you use a file attachment type, after uploading an attachment, the name takes the last 100 characters of the file name by default, including the extension. You can customize the attachment name. In the SaaS version, you can generate a report in PDF format only. You can implement a custom generator and a custom pre-attach process to change how the attachment content is generated or modified before it attaches. See: [Extending Attachment Generator](/business-central/docs/bc-extending-attachment-generation-overview) for information. ## Using ATTACHMENTGENERATOR on premise In the on-premise version, you can generate a report in PDF, Microsoft Word, or Microsoft Excel format. If you choose PDF format, you can also select a PDF template using stationeries. You can implement and apply a custom connector in the attachment line. For example, to combine all sales invoices into one report rather than sending individual reports, create a custom connector to make this change. See: [Custom Report connector](/business-central/docs/bc-custom-report-connector) for information. ![Attachment Generator Setup](https://cdn.document360.io/da662430-6a41-47b1-8c7e-7e4ac37a9756/Images/Documentation/BIS_AttachmentGeneratorSetup.png) ## Related - [Set up the Attachment generator activity](/bc-set-up-the-attachment-generator-activity.md) - [Extending attachment generation: overview](/bc-extending-attachment-generation-overview.md) - [Custom Report connector](/bc-custom-report-connector.md)