skill-events

Implement AL event publishers and subscribers using Event Recorder patterns.

99|28|Updated Oct 15, 2025
One-click install
npx skills add https://github.com/javiarmesto/ALDC-AL-Development-Collection --skill skill-events
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-events
Source: https://github.com/javiarmesto/ALDC-AL-Development-Collection/tree/main/claude-plugin/skills/skill-events
Command: npx skills add https://github.com/javiarmesto/ALDC-AL-Development-Collection --skill skill-events

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AL event-driven patterns reduce coupling and accelerate extension development by providing structured publisher/subscriber patterns, OnBefore/OnAfter workflow points, and IsHandled usage for safe interception.

Core Features & Use Cases

  • Event Discovery with Event Recorder to surface OnBefore/OnAfter events for extension points.
  • Implement Event Subscribers and Publishers following the standard EventSubscriber and IntegrationEvent/BusinessEvent patterns.
  • Design robust event contracts with rich parameter contexts and testing guidance.

Quick Start

Identify an extension point, implement a publisher and a matching subscriber using OnBefore/OnAfter patterns, and test the flow in the BC client.

Frequently Asked Questions about skill-events

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

FAQPage Schema
How do I implement event publisher and subscriber patterns in AL for Business Central?

AL event publisher and subscriber patterns are implemented using IntegrationEvent or BusinessEvent attributes to define publishers, and EventSubscriber attributes to bind codeunits, tables, or pages to those events for decoupled extensibility.

What is the IsHandled pattern in AL event-driven extensions?

The IsHandled pattern in AL event-driven extensions allows subscribers to safely intercept and override standard Business Central logic by setting a boolean parameter, preventing default execution without tightly coupling the code.

How do I use the Event Recorder to find OnBefore and OnAfter events in Business Central?

The Event Recorder surfaces OnBefore and OnAfter integration and business events across Business Central pages, tables, and codeunits, allowing you to discover available extension points before implementing your event subscribers.

When should I use IntegrationEvent versus BusinessEvent attributes in AL?

IntegrationEvent attributes are used for internal system extensibility points like OnBefore and OnAfter workflows, while BusinessEvent attributes expose stable external events for partner integration and subscriber-based extension design.

How do I design robust event contracts with parameters for AL event subscribers?

Designing robust AL event contracts involves defining rich parameter contexts in your publisher methods, ensuring subscribers receive adequate data to process the event safely and test the flow in the Business Central client.