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
MikeBorozdinMikeBorozdin 

Setting up scheduled classes on app setup

Is there a way to set up a scheduled class when a user installs my app?  I need to update SF objects based on statuses in an external service and I'd hate to put the user through a complicated setup.

sfdcfoxsfdcfox

You can't (yet (opens in new window)) have code execute on installation. The de facto standard is to instruct the user to visit a special "setup" tab that allows the user to "complete" installation. I apologize about not being able to offer any additional insight into this, but I believe that is probably the best means of doing so at this time.