20 votes
Accepted

Query for Package Ids installed on an org?

Just run the following command: sfdx force:package:installed:list -u <alias|username> This will give you all of the packages installed, including the 04t "AllPackageVersion" Id that you need ...
user avatar
  • 439k
7 votes
Accepted

Use Object from another manage Package without making my own package dependent to it

I have never tried this before. But using dynamic objects you can do this. Here are idea to get you started. Store the package details and object, field in some custom setting or custom label. Now ...
user avatar
7 votes
Accepted

Can't assign permission set to my user after installing Salesforce Data Mask!

It was not really clear from the announcement or from most of the documentation, but Salesforce Data Mask is actually a paid feature, and if you want to use it you need to talk to your Account Execute ...
user avatar
6 votes

How to debug beta package installation failures

Such error messages represent internal platform failures (or gacks as they are sometimes known) rather than anything in your Apex code, this is why your Apex Exception User is not receiving anything. ...
user avatar
5 votes
Accepted

How to Check whether my install handler works properly?

Here is one (of many) test methods for an install handler in our code: @IsTest static void testAdls() { // Clear to make sure the value is set by the install handler Options__c cs = ...
user avatar
  • 131k
4 votes
Accepted

Unable to install AWS toolkit

Please check that you are installing the correct package. If you are installing on a developer edition org, use this package. If you are installing in production or sandbox, use this one. I just tried ...
user avatar
4 votes
Accepted

How to install ngForce?

FallenPhantasm, Good morning. I'm the author of ngForce. As it turns out there's a grunt task for installing it in your org. Once you've cloned the repo and run npm install just run: grunt deploy ...
user avatar
  • 7,008
4 votes

I created an unmanaged package in a Developer org, but I can't figure out how to install it into a sandbox

Once you get the unmanaged package link ,you will replace login with test Lets say your unmanaged package link is https://login.salesforce.com/packaging/installPackage.apexp?p0=04t28000000B4ng ...
user avatar
4 votes
Accepted

Package and Installation via app exchange

The subscriber org cannot update the callback and Canvas URL once packaged . In this case its preferred to have administration instructions for the org administrator to create the connected app while ...
user avatar
4 votes

How to we get list of Installed packages and it version number

The Salesforce CLI (sfdx) makes it very easy to get a list of installed packages and their version ids: sfdx force:package:installed:list Output: { "status": 0, "result": [ ...
user avatar
  • 9,607
4 votes

How to we get list of Installed packages and it version number

Contrary to some answers, you can use SOQL to retrieve this information. You just can't use it in Apex. In the developer console, if you check the "Use Tooling API" option, the following ...
user avatar
4 votes
Accepted

SFDX Can query Package Installation Status, can we?

There is a tooling object for same for that named "packageinstallrequest" . You can query status field to know the install request status https://developer.salesforce.com/docs/atlas.en-us....
user avatar
4 votes
Accepted

Is there any way to make a shell script to automate creation and preparation of a scratch org wait between steps?

Use the -w parameter so that each command waits for confirmation, and things proceed in order: sfdx force:org:create -w 10 -s -f ./config/project-scratch-def.json -a ScratchOrg sfdx force:package:...
user avatar
  • 439k
4 votes

Managed Package Released Type

The relevant documentation reference is the ISVforce Guide, under Editing Components and Attributes After Installation. It covers most metadata types and explains the manageability rules that will be ...
user avatar
  • 87.4k
4 votes
Accepted

Best way to detect that code is running in InstallHandler context?

Just for the record, consensus is an Apex static variable that the InstallHandler implementation sets and other code tests i.e.: /** * Referenced by triggers. */ public inherited sharing class ...
user avatar
  • 131k
4 votes
Accepted

Maximum Number of Packages That Can Be Installed

There is no such limit on number of Managed packages installed (Assumes its approved Managed package listed on AppExchange). However you need to mindful of total custom object limits for the Edition, ...
user avatar
3 votes
Accepted

How to update a managed package when some VF controllers are deleted?

Salesforce is a little finicky when it comes to removing stuff. Unfortunately (and I've lived through this before), removing pages and controllers is a two step process. First, you have to make sure ...
user avatar
3 votes
Accepted

"Invalid field" error in Visualforce page during package installation

It seems to be namespace issue: Try replacing to below syntax: <span id="gaconnector_pages_visited_list"><apex:outputField value="{!lead.Pages_visited__c}" /> </span>
user avatar
  • 1,806
3 votes
Accepted

"Aura Integration Service Error" When installing a private package

Was the package just created? I get this error if I attempt to install a package immediately after its created. Waiting 5 minutes or so resolves the issue.
user avatar
  • 4,936
3 votes

PostInstall script does not run after package installation

Make sure you have specified the class name which you want to run on Post install of the package into the Post Script Install field in the package detail page(In the packaging org). This field is a ...
user avatar
  • 31
3 votes

How to handle dynamic namespace when packaging lightning components in managed package?

You can get away with the problem of namespace in your lightning components by crafting your own wrapper class structure for your data attributes. The blog post here describes how to create message ...
user avatar
3 votes

How to we get list of Installed packages and it version number

Not doable via sOQL. Using JSForce, you can do a Metadata Retrieve requesting the following members conn.metadata.retrieve({ apiVersion: '39.0', singlePackage: true, unpackaged: { ...
user avatar
3 votes
Accepted

Missing Organization Feature: NetworksEnabledOnce

To avoid this error is necessary to have communities enable first Setup -> Communities -> All Communities
user avatar
3 votes

Magic Mover for Notes And Attachments to Lightning Experience package installation error

You missed configuration steps prior installation From installation guide: Before installing the AppExchange package, the Set Audit Fields upon Record Creation org permission is required. When we ...
user avatar
3 votes

What is salesforce spark edition?

Spark Edition is likely a version of Personal Edition or Free Edition, rebranded to fit the Lightning theme (a Spark is smaller bit of electricity than Lightning). These orgs were extremely limited in ...
user avatar
  • 439k
3 votes
Accepted

Assign Permission Set on Package Installation

You can create a class which implements InstallHandler interface and write your logic in onInstall method this method will be invoked after package installation. global class PostInstallClass ...
user avatar
  • 1,073
3 votes

Is it possible to upgrade a managed package from different salesforce sandbox than the original from which it was created?

No. Each managed package is tied to a specific developer org. It cannot be migrated to another developer edition org. If you've lost access to that developer edition, you will have no way to upgrade ...
user avatar
  • 439k
3 votes
Accepted

Running the packaged tests while installing with sfdx:force:package:install

So far you can't. The only thing you can run is Apex Classes compilation with the --apexcompile flag. However, starting Winter 21, code coverage should be enforced for Unlocked Packages installation. ...
user avatar
3 votes
Accepted

When a former employer or consultant installed a managed package which can't easily be identified, how can I get the package Id?

SFDX conveniently has a feature that does this. sfdx force:package:installed:list -u org-name-or-alias You can directly use the package Ids from the list to install the packages into other orgs. Note ...
user avatar
  • 439k
3 votes

Cannot install custom metadata types to another org

Note that there are two parts to the Custom Metadata Type - there's the type itself and the Custom Metadata Type records. For what you are doing you need to make sure you have both in the package. If ...
user avatar
  • 28.2k

Only top scored, non community-wiki answers of a minimum length are eligible