how to block download source for cloud BC version 19?

julkifli33julkifli33 Member Posts: 1,073
Hi All,
i notice there is no more ShowMyCode for app.json in BC 19.
how do we block download source?
5yobpn1dcj4g.png


i used this, but still able to be downloaded
"resourceExposurePolicy": {
    "allowDebugging": true,
    "allowDownloadingSource": false,
    "includeSourceInSymbolFile": false
  },

Answers

  • SanderDkSanderDk Member Posts: 497
    Have you publish in the dev scope? Then all this is ignored.
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • julkifli33julkifli33 Member Posts: 1,073
    i publish in my sandbox
    version 18 and before all are disabled to download.
    but now can be download by the user
  • SanderDkSanderDk Member Posts: 497
    How did you publish? I guess that you published with VScode?
    If that is the case that is the problem, when using VSCode to publish, your are publishing in the dev scope. which allow users to download your source code no matter what your app.json.
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • julkifli33julkifli33 Member Posts: 1,073
    Hi @SanderDk ,
    how it should be then?
    all along i always publish using Vscode
  • SanderDkSanderDk Member Posts: 497
    hi @julkifli33
    There are mulitple way, the manuel process is building your app file, go in BC and search for Extension Management, and press the upload action.
    Personally i like: to do it with powershell/ a pipeline.
    check out Publish-PerTenantExtensionApps in bccontainerhelper (https://freddysblog.com/2021/01/27/publishing-apps-to-a-business-central-online-environment/#more-6511)
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
Sign In or Register to comment.