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
    YUN ZHU Profile Picture
    92,443 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
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,197 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.
  • Gerardo Rentería García Profile Picture
    23,574 Most Valuable Professional on at
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,316 Super User 2025 Season 2 on at
    Code unit properties
    Hi,
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,661 Super User 2025 Season 2 on at
    Code unit properties

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,132

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,615

#3
Sumit Singh Profile Picture

Sumit Singh 2,912

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans