bcquality/microsoft/knowledge/events/name-event-parameters-without-abbreviations.md
Jesper Schulz-Wedde b6da405376 Improve partner onboarding and documentation navigation
Lead with a complete plugin quick start and add task-oriented usage, troubleshooting, customization, and contribution guides. Preserve the broader plugin framing, correct conflicting contract guidance, support Agents folder reviews, and align repository validation. Convert existing sample references to clickable links without changing knowledge rules.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-09 17:25:29 +02:00

1.7 KiB

bc-version domain keywords technologies countries application-area
all
events
parameter-naming
readability
conventions
event-parameters
no-abbreviations
integration-event
clarity
al
w1
all

Name event parameters without abbreviations

Description

Event parameter names are part of the public contract a subscriber codes against, so they must be self-explanatory. Record parameters take the full table name with the spaces removed — SalesHeader for "Sales Header", not SalesHdr or SH. Simple parameters get a descriptive, spelled-out name — DocumentNo, not DocNo; Amount, not Amt. Abbreviated names force every subscriber author to guess intent and tend to be inconsistent across a codebase, where the same concept appears under several contractions. The cost of a clear name is paid once at the publisher; the cost of a cryptic one is paid by every subscriber that has to decode it.

Best Practice

Use full, unabbreviated names: (SalesHeader: Record "Sales Header"; DocumentNo: Code[20]; Amount: Decimal). Record parameters mirror the table name without spaces, and value parameters read as whole words so the contract is unambiguous.

See sample: name-event-parameters-without-abbreviations.good.al.

Anti Pattern

Abbreviated parameter names (SalesHdr, DocNo, Amt) that obscure meaning and vary across publishers, so subscribers must guess what each one holds. Detection: event parameters whose names are truncated forms of the table name or contracted words rather than the full term.

See sample: name-event-parameters-without-abbreviations.bad.al.