Automated deploy of apps to Business Central with dependencies

Automated deploy of apps to Business Central with dependencies

One of the things that can be really annoying in Dynamics NAV or Business Central is the dependent apps.

What are dependent apps?

Some partners have made a base app that will contain all the basic functionality, that they use with all customers. Then they create apps that can be added to the solution but basing the solution on some data or functionality from the base app. Lastly, it is possible for the users in an on-remise or sandbox environment to add extensions through the Design function in the client.

In the following that is exactly what happened:

  1. Partner has made their own base application with functionality that should be available for all their other apps.
  2. Then the customer has opted two other partner applications:
    1. The Partner Manufacturing app
    2. The Partner Maintenance app
  3. Lastly, a user has made an extension, but hasn’t named it. This will create a Designer app. The advantage with not naming the extension, is that any design changes made later in the client will be added to the Designer app, right until the extension is named.

Closing the design without name, don’t click save. Just close the page.

This is all fine, but when you need to upgrade the partner base app, it is necessary to do the following:

  1. Uninstall the designer app
  2. Uninstall the Partner Manufacturing app
  3. Uninstall the Partner Maintenance app
  4. Upgrade the Partner base app
  5. Install the Partner Maintenance app
  6. Install the Partner Manufacturing app
  7. Install the designer app

This is why many consultants are not very happy with the dependencies and especially not the Design function.

Using PowerShell, it is possible to do the deploy automatically. All it takes is that the names of the dependent apps are known, but anyway here is an example of a PowerShell that could cover the above situation.

You can download it from here.

https://ba-consult.dk/downloads/PublishApp.zip

Remember to visit my bookstore:

17 thoughts on “Automated deploy of apps to Business Central with dependencies

  1. I am glad for writing to make you be aware of of the terrific encounter my daughter went through using your webblog. She mastered numerous issues, which included what it is like to possess a great coaching spirit to have the rest with ease know precisely specified grueling subject matter. You actually surpassed her expectations. Many thanks for displaying those necessary, trusted, revealing and even easy guidance on your topic to Julie.

  2. obviously like your web site but you have to check the spelling on quite a few of your posts. A number of them are rife with spelling issues and I find it very troublesome to tell the truth nevertheless I’ll certainly come back again.

  3. I discovered your blog website on google and verify a few of your early posts. Continue to maintain up the very good operate. I simply further up your RSS feed to my MSN Information Reader. Looking for ahead to reading extra from you in a while!…

Leave a Reply

Your email address will not be published. Required fields are marked *