6

The title basically says it all: I am using SFDX (Unlocked packages) and I am looking for the same functionality that ISVs have to run apex code post-install after a package was installed.

I did not find anything equal for SFDX and I feel a little bit uncomfortable executing anonymous apex after a successfull install (however, this would be my current take). Any thoughts?

  • 2
    Making an Rest API call to run Apex code would be an option. A git hook, TravisCI, or CircleCI would be able to do this. – Paul Sweatte Dec 5 '18 at 0:33
  • Whether the hook to run the apex post-install script is baked into the architecture of the org, or it is initiated via an API call as anonymous Apex, is there any difference? What is the discomfort running anonymous apex from? – pchittum Apr 22 at 20:57

Your Answer

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

Browse other questions tagged or ask your own question.