bc-attachments-generator

Generate attachment setup, event subscribers, and factboxes for Business Central tables.

20|5|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/fernandoartalf/AL-Copilot-Skills-Collection --skill bc-attachments-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bc-attachments-generator
Source: https://github.com/fernandoartalf/AL-Copilot-Skills-Collection/tree/main/skills/bc-attachments-generator
Command: npx skills add https://github.com/fernandoartalf/AL-Copilot-Skills-Collection --skill bc-attachments-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the implementation of standard document attachments, links, and notes on custom Business Central tables, reducing manual coding efforts.

Core Features & Use Cases

  • Automated Setup: Generates setup table fields, page fields, and enum extensions to enable attachment features on specific tables.
  • Event Handling: Implements event subscribers for filtering and initializing attachments during record operations.
  • Page Enhancements: Extends card and list pages with modern and legacy factboxes, and manages control visibility.
  • Use Case: When adding document management to a custom AL entity, this Skill rapidly creates all necessary code components, ensuring adherence to best practices.

Quick Start

Use the bc-attachments-generator to automatically generate and integrate document attachment functionality into your custom Business Central table and pages.

Frequently Asked Questions about bc-attachments-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add document attachments and notes to custom Business Central tables?

To add document attachments to custom Business Central tables, you need to generate setup table fields, page fields, and factboxes. This process involves creating event subscribers and table triggers to ensure record attachments are managed consistently and safely.

What is the best way to automate attachment management integration in AL development?

Automating attachment management integration in AL development involves generating event subscribers, page factboxes, and setup controls. This ensures the document management features align with Microsoft standards while reducing manual coding efforts for custom entities.

Does this approach support both modern and legacy attachment factboxes on Business Central pages?

Yes, the approach supports extending Business Central card and list pages with both modern and legacy attachment factboxes. It manages control visibility to ensure document links and notes are displayed correctly across different interface versions.

How do I set up event subscribers for filtering attachments during record operations in Business Central?

Setting up event subscribers for filtering attachments in Business Central requires implementing specific AL code for record operations. This ensures attachments are initialized and filtered correctly during standard table interactions, maintaining data consistency.

Can I use this method to generate enum extensions for enabling attachments on specific tables?

Yes, you can generate enum extensions to enable attachment features on specific Business Central tables. This automated setup creates the necessary table fields and page controls to support document management without manual intervention.