Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [postinstall]

The tag has no usage guidance.

2
votes
1answer
35 views

Future method is not invoked from PostInstall script

I'm trying to create a future method that makes a callout, and for some reason it's not invoked when the script is done. postInstallScript.cls: global class postInstallScript implements system....
0
votes
0answers
10 views

Can anyone please explain what the statement means regarding UninstallHandler by salesforce

https://help.salesforce.com/articleView?id=apex_uninstall_script.htm&type=5 It runs as a special system user that represents your package, so all operations performed by the script will ...
1
vote
1answer
68 views

Can custom metadata type records be deployed from post-install script?

Looking at limitations of post install script there's no mention of CMDt's, but it also seems like post install stuff does get that much attention and given how many limitations CMDt's have - its wise ...
0
votes
0answers
33 views

Throwing Custom Exceptions From Post Install Script

We have created a post-installation script for a Managed Package. As we are using lightning components in my package, the domain must be enabled. In post-installation script, we are checking whether ...
2
votes
0answers
29 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 ...
2
votes
0answers
16 views

Show custom post install message

I've create a managed package and based on my question here I'm performing a check on whether My Domain feature is enabled or not. Assuming the check is implemented, I now need to let user know that ...
0
votes
0answers
119 views

Populate protected custom setting in post install script

My managed package contains a custom setting and a post install script that populates data in that custom setting. The custom setting is protected. Here is the code - global class PostInstallSetup ...
1
vote
1answer
564 views

Create remote site setting on post install script

I need to create a remote setting setting with org instance URL using URL.getSalesforceBaseUrl().toExternalForm() on post install script of package installation. Note : URL.getSalesforceBaseUrl()....
1
vote
0answers
15 views

PostInstall script disappearing when building package

After specifying a PostInstallScript on a package, then building it, the field disappears while it's processing: It seems that it's not functionally an issue, as when the package is built it's still ...
3
votes
0answers
347 views

How to debug Post-Install script?

We don't get much information on email received by subscriber if Post-install script fails. Problem: Unexpected Error The package installation failed. Please provide the following ...
2
votes
1answer
84 views

How to make an External Id field unique in a managed package?

We need to make couple of existing external Id fields unique in a managed package, But it's not possible to make them unique once released. Unfortunately these have been not made unique by mistake (...
2
votes
0answers
41 views

Managed Package: Detect from post install script if it's patch or major version

When our managed package is installed in subscriber org, we need to populate some custom settings from post install script. But different data should be inserted for major version versus patch version ...
4
votes
1answer
109 views

Create canvas app using Apex

Is it possible to create a canvas app using Apex? We're trying to distribute a managed package that has an easy install process for the user. Our back-end server requires that each customer has a ...
1
vote
1answer
76 views

Managed Package Post Install Script - how to identify special package user?

After managed package is installed, post install script is executed under some virtual system user with God permissions. But there are some issues with this type of user when it comes to querying ...
2
votes
2answers
232 views

Restore Post Install Script setting on managed package patch

Our managed package had a Post Install Script defined which was working fine. For some undiagnosed reason (perhaps because we started using SFDX?) the Post Install Script setting was erased in a ...
2
votes
1answer
121 views

Page Reference getContent method in a batch within a package

I'm struggling with the functionality of pageReference.getContent() inside my batch. When running the following batch in dev, works like a charm. When running it in a package, getContent returns an ...
1
vote
1answer
56 views

post install class access modifier

Is there a reason for post install script to be global access? why not public? Any reasons for not making the postInstallClass public? I ask because global classes cannot be deleted from managed ...
0
votes
1answer
74 views

Salesforce managed package with post install class for professional edition

I have built a package that has a post install script. Now trying to install it into a professional edition, it doesn't install because of no apex permission in the org. Now, I cannot delete the apex ...
0
votes
2answers
41 views

Trialforce Org derived new instance does not run after Insert triggers?

We noticed when a user registers for a trial from Appexchange it does not run Insert triggers. Seems it's just creating a snapshot of data instead (but with new record Ids). Is there any way we could ...
1
vote
1answer
474 views

Managed Package Post Install Script failure

My post-install script is failing on just one sandbox, and I can't figure out why. It has been working successfully for more than a year, on a number of different orgs, but this one fails. When it ...
0
votes
0answers
63 views

The package installation failed in sandbox but successfully installed in production org.why.?

I am trying to install managed package in sandbox org but it is not being installed and giving following error: Problem: 1. Unexpected Error The package installation failed. Please provide the ...
0
votes
1answer
62 views

Push VS Upgrade packages

I was setting up postInstall scripts and noticed that there is a condition that checks for if it is an upgrade or push. My understanding was that the method of installation should be irrelevant but ...
0
votes
1answer
37 views

Can I automate the creation of a tab that links to a VisualForce page?

This is a follow up to previous conversations. None of the previous answers have told me what I've needed, so I'm thinking that what I want is probably impossible. But it would be great if someone ...
1
vote
1answer
23 views

Can my app auto-update an installee's security settings to allow them access to my API?

I work at a company that sells data about private companies. We have an API and our customers sign up to get an API key, with which they can make API calls to get data about specific companies. More ...
2
votes
0answers
358 views

Can we see installation logs while installing a managed package?

I have an install handler in the package which inserts certain records post installation. But when I install the managed package neither do I see any logs nor the records are inserted. Also I have put ...
2
votes
2answers
740 views

How to write post installer script apex class for package?

i have a custom setting named lendingxl__LeadApplicationFieldMapping__c in my org. i want to create it's record after installing the package. & update the same records after upgrading the package. ...
6
votes
1answer
718 views

Get currently installed package version from Apex Class

In my managed package I have a Setup page that should only display setup steps relevant for the currently installed version of my package. I know in InstallHandler implementations there are way to ...
0
votes
0answers
218 views

Scheduling multiple batch classes from postinstall script of managed package

I know we can schedule batch classes from post install scripts, but need to confirm this in my scenario. I have to schedule two batch classes which will update the data of two objects and also insert ...
2
votes
1answer
64 views

Post install script error: Fails to find field being added in new package version

I am currently running into an issue with my post intstall script batch job. When trying to copy the values from the old field on account to the new field, for one reason or another I get the ...
1
vote
2answers
692 views

The post install script failed

We've the following post install script in place. We have recently updated it to check for FLS CRUD validation as Checkmarx scan suggested. Does custom settings need to have this FLS CRUD validation?...
5
votes
1answer
152 views

Create static resource from Managed Package PostInstall script

I'm trying to create static resource json file (with metadata api) on after install script, that runs after Managed Package is installed. The issues I faced so far are: one can't run metadata api ...
2
votes
2answers
205 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
2answers
30k views

How to give date and time values in request body using postman

I have Created a Request Body in Event Object with Date and Time Details, how to give the Date and Time Values in JSON format using Postman { "Type":"contact call", "WhoId":"0038E00000GWXhL",...
1
vote
0answers
284 views

Update Profiles in APEX

Anything I've read indicates that there's no native APEX DDL layer for Metadata such as Profiles. It seems the only way to update profiles in Apex is to use FinancialForce's MDAPI wrapper. This is ...
1
vote
1answer
53 views

WebServiceCallout in InstallHandler

I have a package with a post-install script. The script calls a class which uses WebServiceCallout. When running separately, it is OK, but when running in the Post Install script context, it fails. ...
5
votes
0answers
265 views

Translating using Translation Workbench in a Managed Package

I'm using translation workbench in my managed package to support different languages. I've so far had the necessity to translate just a couple of field labels in standard User page layouts. These ...
1
vote
1answer
357 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 ...
4
votes
2answers
359 views

Field permission in post install script

I want to create 1 permission set for my managed package and in that I need to assign standard Account object permission and its field permission. So here is my query : Can we assign field permission ...
2
votes
1answer
353 views

Is it Possible to add multiple Post install Scripts while creating a manged package?

We have created a managed package which consist of multiple custom setting objects with multiple handler classes.Now in Post Install Script field,We are able to add only one handler class.How can we ...
5
votes
2answers
162 views

How to Check whether my install handler works properly?

I have created a Installhandler class for the custom setting object and I would like to test whether it works properly when the installer installs it? How can I accomplish this? Since this is the ...
4
votes
0answers
148 views

Does post-install script run when a patch version of the package is installed?

Recently we've run into a situation where we've provided an installation link for a patch version of the package (e.g. v1.23.4) to a user, and after this user has successfully installed the patch, the ...
1
vote
1answer
772 views

Managed package takes too long to install

When developing a huge app (200+ classes, because FFlib and separation of conserns), Salesforce throws me an error while installing the package in a test environment: The install proceeds after a few ...
0
votes
1answer
27 views

Prompting user for user credential right after the app installation

Is it possible to ask for user input at the end of app installation? I need users to enter credentials for external API at the end of app installation or very beginning of an app. Basically, I'm ...
1
vote
1answer
116 views

Throw an error that makes package install fail

In my managed package I'm using a Post Install script to create and update some necessary data in customer orgs. This needs to happen without error otherwise some data integrity issues occur. At ...
3
votes
0answers
89 views

Secure communication between InstallHandler and third party application

During the installation of our package we need to fetch data (related to the installer organization) from a third party system (integration part of our solution). Like stated in the documentation ...
5
votes
2answers
1k views

How do you / can you assign a Record Type to a Permission Set in Apex code?

I have a post-install handler that is executed as part managed package installation. One of the tasks performed by the post-install handler is to create a Permission Set, and assign some object ...
1
vote
0answers
122 views

Assign new Record Types on Managed Package object on upgrade?

We have an object in a managed package, that in previous versions had no record types. In the next version, it has two. On install of test versions of the package, all profiles are assigned Master ...
9
votes
1answer
706 views

Updating page layout when package installed

I'm developing a managed package and I have some custom fields of "Lead" sobject included + custom lead layout. I want to automate it all for user. Is there any way to: replace default layout, add ...
1
vote
0answers
98 views

OnInstall package using HttpRequest or Callout creates System.CalloutExceptio

I've tried alot of solutions for this issue but when I install the package then I received an email with exception info as below: System.CalloutException: You have uncommitted work pending. Please ...
3
votes
3answers
651 views

Apex code to override standard button/link for standard object?

I'm creating an application that will be distributed as a managed package on the AppExchange. As part of the install process, I would like to override some standard links/buttons for standard objects (...