Skip to main content
Microsoft Dynamics NAV forum
Suggested answer

Upgrade Codeunit to Uninstall an App and Reinstall (Dependancies)

editSubscribe (0) ShareShare
Posted on by 372


Can someone provide me an example how an upgrade codeunit that would uninstall the apps that depend on the extension I am publishing, and reinstall it after my extension is installed? I want to be able to publish this main extension seamlessly without having to uninstall and reinstall the app that depends on it every time.

App 1 is my core, App 2 depends on it. I want to consistently publish SchemaUpdateMode: Synchronize App 1 without worrying about App 2.

Thank you,

  • Suggested answer
    Brian Wick Profile Picture
    Brian Wick on at
    RE: Upgrade Codeunit to Uninstall an App and Reinstall (Dependancies)

    Hello  - We currently do not have dedicated Dev support via the NAV/Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    I will open this up to the community in case they have something to add.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…


Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans