Linked Questions

23
votes
1answer
954 views

Can we use a single class as a batchable class and install handler?

Background We would like to use a single class for installing our app. To avoid having any more classes than we need, we're trying to consolidate installation into a single class. Class public ...
6
votes
3answers
872 views

Delete Group using Apex

Trying to delete groups and queues within Apex code when executing an uninstall script, Salesforce raises me this error: DML operation DELETE not allowed on Group Although this is pretty clear error,...
2
votes
1answer
608 views

Entity is not api accessible - Group Object

When installing my managed package into a test org I get the following error: System.NoAccessException: Entity is not api accessible This error is coming when accessing a map with the following ...
2
votes
2answers
414 views

Failed to execute scheduled job on post install script

I have a post install script which schedules a batch apex. After installation of the package the jobs are getting scheduled but scheduled apex fails to execute scheduled jobs. It says dependent class ...
0
votes
1answer
471 views

Post install script giving a problem

I am creating a package. I have did a mistake and that mistake is Object that i have created starts with 00000. But my logically it should have been started with 00001. But now I am not able to change ...
2
votes
1answer
448 views

Custom settings in subscriber's org not accessible by managed code

I am currently migrating to a managed package and I wish I could copy unmanaged [protected -- in case it matters] custom settings values to the managed ones in my post install script. However, I'm ...
2
votes
2answers
250 views

Unable to do callout from PostInstall Script

As per the Salesforce documentation, Post-Install script can perform callouts using an async operation only. https://help.salesforce.com/articleView?id=apex_post_install_script.htm&type=5 So, I ...
1
vote
0answers
291 views

Post Install Script not working

How do I run postinstallscript from anonymous window to check if it is working or not? I am trying to install a package to another org where it is failing with below error. Unexpected Error The ...
1
vote
1answer
46 views

Developer script exception: Do not have access to view running user

I'm trying to debug a "Developer Script Exception". Apex script unhandled trigger exception by user/organization: 0053000000ARXXX/00D30000000XXX AccountMasterTrigger: execution of ...
2
votes
0answers
45 views

Permissions for a scheduled process initiated from InstallHandler

I've got a managed package which needs to start a batch process from a trigger. In order to deal with subscriber orgs who are also using asynchronous apex, my code tries to start it, then uses a "run ...