We have system triggers for OnInstallAppPerCompany() and OnInstallAppPerDatabase(). It would be very useful to have matching OnUninstallAppPerCompany() and OnUninstallAppPerDatabase().
Handling these through the existing Install subtype or a new Uninstall subtype would be good.
Comments
This is definitely needed for our app... it updates some tables as item ledgers post, and if a user manages to post while the app is uninstalled, the tables need to be updated upon reinstallation. This would allow us to store the last ledger entry number on uninstall and shore up the data that was posted in between on reinstall.
Category: Development
This would be very valuable, I hope this can be rolled out soon!
Category: Development
It would be interesting for resetting standard values as Reports & Layouts once a customer no longer wants the extension.
Category: Development
Now that we got support for Isolated Events (https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-events-isolated), this should be quite straight forward to implement.If the extension uninstall code fails, just proceed with uninstall.
Category: Development
Linked to old GitHub request for additional details (and closing that)
https://github.com/microsoft/AL/issues/191
Category: Development
Such event should exist but if u installing fails, we (VAR or customer) have to be able to force it.
Cleaning data could also be a task done by the platform and not by the app. If the user uninstall an app, he could have the ability to delete the data.
Category: Development
Great idea. For cleaning up setup that is connected to the app like job queues or report selections.
Category: Development
Brilliant idea, really looking forward to this beeing implemented.
Category: Development
I should be possible to prevent uninstalling, if this addon contains fiscal relevant data that has to be archived for auditing.
So every addon should not completely block deinstalling, but it may disallow it.
Category: Development
Some scenarios for which we need this:
Clean up data, like workflow triggers and responses.
Stop or pause subscriptions in case of monetization
We might need context information, e.g. is the uninstall performed automatically by the platform because of an upgrade or in a dependency chain. Then the app will most probably also be reinstalled moments later.
But the most interesting scenario is when a user decides to manually uninstall the app.
Category: Development
Business Central Team (administrator)
Best regards,
Business Central Team