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...
Suggested Answer

Al Package Issue

(0) ShareShare
ReportReport
Posted on by 102

Hello,

I have a project which has alpackage1. inside alpackage1 I have couple of tables and codeunits. I am able to view the code written inside the table but not view the code inside the codeunit. If i try to view, it only shows something like below. Any help on this would be really helpful. 

 AlpackageIssue.PNG

Thanks 

Jp

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    This is defined by the "showmycode" setting in the app.json file for your app:

    showMyCode No By default, it's set to false and isn't visible in the manifest. To enable viewing the source code when debugging an extension, add the following setting: "showMyCode": true.

    Note: This setting will be deprecated in a future release, and replaced by the resourceExposurePolicy setting introduced with runtime 8.0. It's described in this table.

    resourceExposurePolicy No Defines the accessibility of the resources and source code during different operations. The resourceExposurePolicy property contains four options for defining access: applyToDevExtension, allowDebugging, allowDownloadingSource, and includeSourceInSymbolFile. All defaults are false. The syntax is "resourceExposurePolicy": {"applyToDevExtension": true, "allowDebugging": true, "allowDownloadingSource": true, "includeSourceInSymbolFile": true}. For more information, see Resource Exposure Policy Setting.

    learn.microsoft.com/.../devenv-json-files

  • Suggested answer
    YUN ZHU Profile Picture
    103,085 Super User 2026 Season 2 on at

    Hi, just adding some info.

    Richer access control for extension source in cloud environments (‘showMyCode’ -> ‘resourceExposurePolicy’)

    https://yzhums.com/17688/

    How to prevent users from downloading source code of PTE in Dynamics 365 Business Central

    https://yzhums.com/1732/

    Hope this helps as well.

    Thanks.

    ZHU

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 719 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 410 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 369 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans