web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Validation Code Unit or Table Extension - Best approach for extension

(0) ShareShare
ReportReport
Posted on by 1,165

Hi All,

I'm trying t o validate purchase order line level location matches header location, and provide a message to end user.  Not sure if I should use a code unit or table extension as both seeems to capture triggers on tables such as OnValidateAfter.  Looking at the code, table extension has less code but perhaps there are other advantages to code units

thanks

  • Suggested answer
    JAngle Profile Picture
    161 on at

    A codeunit represents a cleaner project as you could look to bundle all table subscribers together in one object. This is a longer term view or a larger project scope view

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 569 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 375 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans