Correct event compatibility guidance

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 645349fd-1892-48f3-8a84-db77d6abd1c3
This commit is contained in:
Jesper Schulz-Wedde 2026-07-14 12:11:38 +02:00
parent 23af51e02d
commit 6c5133fe7e
9 changed files with 54 additions and 47 deletions

View file

@ -1,4 +1,4 @@
// Demonstration-only AL. Version 1 exposed Score as an Integer named Score.
// Demonstration-only AL. Version 1 exposed var Score as an Integer.
codeunit 50521 "Customer Scoring Events Bad"
{
procedure ScoreCustomer(CustomerNo: Code[20]; ScoreText: Text)
@ -6,8 +6,8 @@ codeunit 50521 "Customer Scoring Events Bad"
OnCustomerScored(CustomerNo, ScoreText);
end;
// 'local' limits raising, not subscription. This type/name change breaks
// subscribers compiled against the shipped event.
// 'local' limits raising, not subscription. Renaming Score to ScoreText,
// changing its type, and removing var all break existing subscribers.
[IntegrationEvent(false, false)]
local procedure OnCustomerScored(CustomerNo: Code[20]; ScoreText: Text)
begin