function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KazminKazmin 

Specify PostInstall class

Hey all,

it should be possible now to create an apex class that executes some code after a package is installed.

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_install_handler.htm

 

Here in this document, at the bottom of page 188 it says:

http://www.scribd.com/doc/97452753/205/Running-Apex-on-Package-Install-Upgrade

"Once you have created and tested the post install script, you can specify it in the Post Install Script lookup field on the PackageDetail page. In subsequent patch releases, you can change the contents of the script but not the Apex class. The class selection is also available via the Metadata API as Package.postInstallClass. This is represented in package.xmlas a <postInstallClass>foo</postInstallClass> element."

 

I searched and I searched, but I couldn't find the place where I can specify which is my post install class.

Can you point me into the right direction?

 

Many thanks,

Nikolay

jeff32jeff32
  • Go to Setup -> Create -> Packages
  • Click the Edit link next to your package
  • There should be a field labelled Post Install Script

Jeff

KazminKazmin

I don't have such a link. Any idea why that might be?

jeff32jeff32

So you can see your package in the list of packages, but there is no edit link?

 

Are you logged in as a System Administrator? If not, there may be a particular permission that you need.

KazminKazmin

I can see the package and can see the edit link, but when I press it the only fields that are there are:

Package Name, Language, Configure Custom Link, Notify on Apex Error, Description, Created By

 

I should have all required permissions, after all it's my dev environment and I created that package.

KazminKazmin