1

I am developing a managed package. I want create some record after installation of this package. Is possible to run apex script after installation of the package?

2
  • 1
    Do you want to do it as part of the package installation?
    – BarCotter
    Commented Apr 14, 2015 at 11:38
  • 'yes' @BarCotter Commented Apr 14, 2015 at 12:10

1 Answer 1

2

Take a look at Post Install Handler Interface, this should allow you to create record after package is installed. you just need to create this Interface Class and then select that Class in "Post Install Handler" lookup in your Package Dev org.

2
  • Thanks @VarunC. The method onInstall of the interface InstallHandler does it fire after update of a package? Commented Apr 15, 2015 at 6:33
  • 1
    Yes it fires every time package is installed, whether fresh install or an upgrade.
    – VarunC
    Commented Apr 15, 2015 at 6:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .