1

I'm providing a managed package with a tab for the subscriber to give the possibility (only if he wants, this is the reason because I did not provide sample data creation in a PostInstall Script) to install some sample data, in order to "test" the app feature. Now I know that if after installling the package and creation of sample data, if the subscriber wanted to uninstall the package, he would get errors related to the all package components referenced by the record created as sample data. Do you have any suggestions about the handling of this problem? For example, I'm thinking about another tab (or the same) to provide a button that automatically uninstalls all sample record created, in order to be able to uninstall the package, but I don't know if this is a good practice.

0

Have a look here mate! This is what you need :-)

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_uninstall_handler.htm

  • 1
    It's what I need! Even if I just got the solution -elsewhere- some minutes ago! – user9959 Nov 7 '14 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy