21 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 ...
  • 461k
8 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 ...
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 ...
6 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 ...
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 = ...
  • 133k
5 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:...
  • 461k
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 ...
  • 7,168
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 ...
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 ...
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": [ ...
  • 9,787
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....
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 ...
  • 90.1k
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 ...
  • 133k
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, ...
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.
  • 4,996
3 votes
Accepted

Missing Organization Feature: NetworksEnabledOnce

To avoid this error is necessary to have communities enable first Setup -> Communities -> All Communities
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 ...
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>
  • 1,856
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: { ...
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 ...
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 ...
  • 31
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 ...
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 ...
  • 461k
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 ...
  • 1,280
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 ...
  • 461k
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. ...
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 ...
  • 461k
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 ...
  • 31.2k
3 votes

SFDX or API Call to Install Package using Profile Mapping

You can do it from the Tooling API by creating a PackageInstallRequest record in the target org. This object includes a field ProfileMappings that allows you to specify the source Profile name (in ...
  • 90.1k
3 votes

How to check if the managed package is installed for admin or for all users or for specific profile?

Strictly speaking, you can't; this information isn't recorded as such anywhere. Installing for admins or all users or specific profiles actually just grants the selected profiles access to all managed ...
  • 90.1k

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