The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
34 views

Schedule task 10 minutes after install

I have a schedulable class in my package that would run every hour to pull data using a callout and put it in the custom object. I am aware of using system.schedule as below: String scheduleTime='0 ...
3
votes
3answers
138 views

Install Script Batch Job failing (sObject type 'Contact' is not supported)

This is my scenario: I have a managed package, with quite some logic in it, and 2 triggers on normal SObjects, Lead and Contact the 2 triggers populate a field (included in the managed package) on the ...
2
votes
1answer
23 views

Writing Unit Test for OnInstall script

Here is the scenario. I have a custom field on Contact, which gets auto-populated in a trigger before-insert and before-update. All fine, but this is a field in an Managed Package. Where the package ...
5
votes
2answers
101 views

How to show a vf page on the first installati​on of the managed package?

I want to show the vf page on the first installation of the managed package, or it can be the custom setting page should open up on installation, where the user will add all the custom settings on the ...
3
votes
1answer
38 views

PostInstall: Check if version is less than

Is it possible to check if the previous version is: "Less than" a certain value using the context.previousVersion() field. The documentation does a one-to-one comparison for a specific version like ...
4
votes
1answer
171 views

Post Install Script - Is it possible to run as a proper user?

I would like to create a CollaborationGroup when a managed package is installed. Currently I get an error 'INVALID_CROSS_REFERENCE_KEY, This user can't be added to the group.: []' when I run the ...
4
votes
1answer
258 views

Managed package install script - sObject type not supported

I have a managed package with a PostInstall script, however I'm having trouble accessing custom objects within it. Apon installation, I get the following error notification email ...