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

Community site session details

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

Code unit properties

(2) ShareShare
ReportReport
Posted on by 77
Hello all,
 
Can anyone please explain the property Access = Internal in code units?
 
How and when to use it?
 
What is the purpose of using it?
 
 
Thanks.
 
Regards,
 
Reshma.
I have the same question (0)
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,713 Super User 2025 Season 2 on at
    Code unit properties
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,362 Super User 2025 Season 2 on at
    Code unit properties
    Hi,
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Gerardo Rentería García Profile Picture
    24,089 Most Valuable Professional on at
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,261 Super User 2025 Season 2 on at
    Code unit properties
    Declaring a codeunit as Internal means that no other app can use that codeunit and its procedures.
     
    You can use it to prevent other apps from calling the codeunit procedure. This is mainly done for AppSource apps. Modifying the procedure properties is considered "Breaking Change" and can affect other apps that rely on that procedure. By making the codeunit internal, you can modify the procedures without worrying about other apps.
  • Suggested answer
    YUN ZHU Profile Picture
    94,262 Super User 2025 Season 2 on at
    Code unit properties
    Just add an example,
    Standard code:
     
    Your extension: 'Codeunit System.Utilities."Image Impl."' is inaccessible due to its protection level
     
    Thanks.
    ZHUY

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,705

#2
Sumit Singh Profile Picture

Sumit Singh 2,015

#3
YUN ZHU Profile Picture

YUN ZHU 2,004 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans