Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to get .APP files of our Extension

Posted on by 25

Dear All,

Our current Business Central is currently on an update to Version 21. Now the situation is that, we have our existing company extension which contains all the internal modifications and developments created in Visual Studio Code. Now that we are in an upgrade, we decided to upgrade our own extension. I was able to upgrade our extension by updating the launch.json of our extension in Visual Studio Code. Now our partner requires us to give the .APP files of our extension. I want to ask how to do this.

Below is the exact requirement that our partner has requested us.

" Could you please send us only two latest APP files (one per each custom extension)? Also please make sure you was able to setup these files to the BC210 using shell installation procedure (which guaranties compatibility and app instance validation):"

Our internal extension was compiled in Visual Studio Code and running in the Business Central perfectly, hence we were able to test with the Users without problems. Now they need this, as per them for the Live deployment of the new version. 

I am quite new to BC development. I actually do not know how to get the .APP files of our extension. We initially gave them the folder of our .app files (not the one downloaded as source code from the Extension Management of BC.

We will appreciate any help for this. Thank you in advance.

Regards,

Hot Potato

  • Hot Potato Profile Picture
    Hot Potato 25 on at
    RE: How to get .APP files of our Extension

    Hi Danielle,

    Thank you for your help on this, I already publish and installed the extension that we have using Visual Studio Code, however our partner wants it to be published and installed using the Business Central Administration Shell. I have tried unpublishing it and uninstalling it in Extension Management of Business Central. However when we tried to Publish-NavApp the extension in the shell, an error about dependencies showed. Did I did it correctly? by unpublishing and uninstalling the extension from the Extension management and then publish it again in the shell?
    We'll be very glad for your outmost help on this. Thank you.
  • Verified answer
    DAnny3211 Profile Picture
    DAnny3211 9,272 Super User 2024 Season 1 on at
    RE: How to get .APP files of our Extension

    hi

    To create an .app file for your Business Central extension, you can follow these steps:

    Open Visual Studio Code and go to your project folder.

    Press Ctrl+Shift+P (or Command+Shift+P on Mac) to open the command palette.

    Type "AL: Package" and press Enter.

    Choose a publisher name and enter the version number.

    Select "All" or choose the specific artifacts you want to include in the package.

    Press Enter and wait for the package to be created.

    Once the package is created, the .app file will be generated in the ".\bin\Debug" folder of your project.

    You can then share the .app file with your partner, who can use the shell installation procedure to install the extension in their Business Central environment. To do this, they can follow these steps:

    Open a command prompt or PowerShell window and navigate to the folder where the Business Central Server instance is installed.

    Type the following command to install the extension:

    Microsoft.Dynamics.Nav.Apps.Tools.Installer.exe install -sourcePath [path to .app file] -tenant [tenant id] -appId [app id] -version [version number] -overwrite

    Replace the placeholders with the actual values for your extension. For example:

    Microsoft.Dynamics.Nav.Apps.Tools.Installer.exe install -sourcePath "C:\MyApp\MyApp_1.0.0.0.app" -tenant default -appId MyApp -version 1.0.0.0 -overwrite

    Wait for the installation to complete.

    Restart the Business Central Server instance.

    I hope this helps you create and share the .app file of your Business Central extension.

    Daniele

  • Verified answer
    Eiken Profile Picture
    Eiken on at
    RE: How to get .APP files of our Extension

    Hi,

    Please refer to the last two minutes of this video.

    Create an Extension for Dynamics 365 Business Central in 6 minutes - YouTube

    Using VS code to compile the .al file.

    After compiling the extension, you will receive an .app package file.

    pastedimage1678176779385v1.png

    pastedimage1678176847830v2.png

    pastedimage1678176949409v3.png

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans