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
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
I think it would be good to have such methods. For example, to eliminate job queues that have been set up with extension objects.
Category: Development
Great Idea, but keep in mind that it should never be possible to block deinstallation of an app.
Category: Development
Business Central Team (administrator)
Best regards,
Business Central Team