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

Al Package Issue

(0) ShareShare
ReportReport
Posted on by 100

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

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,057 Moderator on at
    RE: Al Package Issue

    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
    93,834 Super User 2025 Season 2 on at
    RE: Al Package Issue

    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

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
Sumit Singh Profile Picture

Sumit Singh 2,179

#2
OussamaSabbouh Profile Picture

OussamaSabbouh 1,999

#3
YUN ZHU Profile Picture

YUN ZHU 1,892 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans