Skip to main content
31 votes
Accepted

Extension packages & Licence Management in 2GP

Thanks for the question! I've created an answer in three parts, each one meant to address a specific question you've asked. PART ONE: How to Create Second-Generation Extension Packages PART TWO: How ...
Vivek M. Chawla's user avatar
11 votes

How the LMA(License Management Application) works in Salesforce?

The LMA has documentation here. There's a lot of reading material to go over, but basically it is pretty straight forward. You request an installation link to the package, you install the package into ...
sfdcfox's user avatar
  • 495k
6 votes
Accepted

How to implement per user Licenses with LMA for an AppExchange App

Generally speaking, there's nothing "special" you need to do (in most cases). Once you switch to a per-license model, salesforce will automatically restrict access to all components in your package ...
sfdcfox's user avatar
  • 495k
6 votes

License Management Application (LMA) in scratch org

As long as you have the package ID, you can: sfdx force:package:install --package 04t... --targetusername scratchOrgAlias If you don't have the package ID, you can't use this command. You can get ...
sfdcfox's user avatar
  • 495k
5 votes
Accepted

What happens when I reduce Seats for a license in LMA

All currently assigned users retain access to the application until they are deactivated by the Administrator. No further licenses can be assigned to other users until the License Count reaches a ...
sfdcfox's user avatar
  • 495k
5 votes
Accepted

Use FMA Features for per-user licensing

In salesforce, access is controlled through Permission sets. LMO org can assign how many feature-specific licenses are assigned using an FMA Integer parameter, Currently there is no standard ...
Anmol Kumar's user avatar
  • 3,631
5 votes

Extension packages & Licence Management in 2GP

2GP managed packages only appear in the LMA after security review has been passed (as you have pondered). (Note that, as an aside, without the security review being passed it is actually impossible to ...
Phil W's user avatar
  • 36.8k
4 votes

Access to debug logs in managed package

If you can, it's much better to use the License Management App application to access the debug logs from a managed package installed in a client org. You'll find limited usage for a custom object ...
Daniel Ballinger's user avatar
4 votes
Accepted

Managed package license checks for users

How can I check license for a set of users other than current user? Use UserPackageLicense: SELECT UserId FROM UserPackageLicense WHERE PackageLicense.NamespacePrefix = 'your_prefix' I'm aware ...
sfdcfox's user avatar
  • 495k
4 votes

Don’t install the LMA in the Developer Edition org where you created a managed package

Install the LMA in your production org. This is necessary because the LMA will create leads for you as your clients install or try out your app. If you put this in your developer org, you may run out ...
sfdcfox's user avatar
  • 495k
3 votes
Accepted

Managed Package: Subscriber Support via LMA - Access to protected settings and custom metadata

Re Custom Settings, yes - if you log into an org via Subscriber Support, then you can see and update all protected custom settings in your package. Don't think that is true for Custom MetaData - I can'...
BritishBoyinDC's user avatar
3 votes

Granting the "Debug Apex" permission for the Apex Debugger as an ISV Partner

The required permission isn't called "Debug Apex" as it currently appears in the docs. Rather it is Permission Name: View and Debug Managed Apex Description: View the Apex code in your packages, ...
Daniel Ballinger's user avatar
3 votes

Access to debug logs in managed package

Should you need a custom logging class for your managed package? Generally speaking, no. Some ISVs do decide to do this to avoid the complications of subscriber logging (you have to submit a case, ...
sfdcfox's user avatar
  • 495k
3 votes
Accepted

No subscribers under Subscriber Organizations tab in license management app (LMA)

If you go to the Package in the LMA there is a "Refresh Licenses" button. Press that and then wait 24 hours for all the Subscriber information to be refreshed. Otherwise you need to wait for the ...
Daniel Ballinger's user avatar
2 votes
Accepted

Changing the Duration of the License Management App Trial

You can do that - open a case and request this from Salesforce support.
Itai Shmida's user avatar
  • 5,035
2 votes

Access to debug logs in managed package

You cannot limit access to the object aside from the local standard OWD and sharing settings. And even at that logging will be limited to your specific text. Any errors logged via getMessage, ...
Eric's user avatar
  • 54.2k
2 votes
Accepted

Managed package licensing

A license allows the currently running user to use an app. Any user can be referenced normally (e.g. a custom lookup to a user), but they will be unable to query or modify the data that points to ...
sfdcfox's user avatar
  • 495k
2 votes

Managed package license timeline

I wanted to know can we associate licensing for the managed package after the security review ? Yes, you'll be given directions for how to install the LMA and associate your package to the LMA. This ...
sfdcfox's user avatar
  • 495k
2 votes
Accepted

Get NamespacePrefix for a given Package Id (in org with LMA app)

You can use the Tooling API to query SubscriberPackage, e.g. $ force query -t "SELECT NamespacePrefix FROM SubscriberPackage WHERE Id = '033f40000001ZCXAA2'" NamespacePrefix ----------------- osfb ...
xn.'s user avatar
  • 2,468
2 votes
Accepted

Minimal Salesforce License to use LMA and Subscriber Support

After a dance with Salesforce support they confirmed that in Salesforce there is no single document stating what is needed for that but here it is: You need: Sales Cloud Standard User License, Sys ...
Robert Sösemann's user avatar
2 votes

Minimal Salesforce License to use LMA and Subscriber Support

I don't think there's an explicit document that states this for sure, but checking a few different type of profiles based on license types, it appears that the Log in to Subscriber Org permission can ...
sfdcfox's user avatar
  • 495k
2 votes
Accepted

Do installing a Managed Package (listed in AppExchange) via Salesforce CLI, create a License & Lead in package developer's LMA org?

Yes, Installing a package into a scratch org WILL create a license record in the LMA and a Lead Record. The Lead name will be User User. I not not have a current one to check the org Status on the ...
Eric's user avatar
  • 54.2k
2 votes
Accepted

LMA - install on Partner Business Org or our Production org?

Is it a good idea to install and manage LMA from our Production org rather than from the PBO? For most partners, their Partner Business Org is their Production Org. You should have an option to ...
sfdcfox's user avatar
  • 495k
2 votes
Accepted

Is there any way to set feature parameters for beta versions which did not pass security review?

It is possible to use Dependency Injection to mock the Feature Parameters for development org or for beta packages. Let's create Feature class and include this in the basic package @...
Patlatus's user avatar
  • 17.2k
2 votes
Accepted

How Managed Package license is counted

Will the user be able to access an object from the package in any way through UI without having a license assigned. I believe no, but want to be sure about it. Correct. They cannot see the object in ...
sfdcfox's user avatar
  • 495k
1 vote

Get NamespacePrefix for a given Package Id (in org with LMA app)

Doing via Apex and the RESTAPI is pretty simple. The setup like getting the tooling endpoint and session Id varies depending on your exact implementation. The below assumes you know how to get them ...
Eric's user avatar
  • 54.2k
1 vote

FMA parameter update in LMO org using apex

In Apex code, you can update data in customer object directly. There are three objects available in LMO: sfFma__FeatureParameterBoolean__c, sfFma__FeatureParameterDate__c, ...
Ashish Narang's user avatar
1 vote

Are installHandlers executed after the LMA creates the license?

While I don't have much of experience around managed package development, but going through the documentation, it looks like you don't need a license for a User to execute the post installation ...
Jayant Das's user avatar
  • 30.6k
1 vote

Any way to debug Process Builder flows?

In general scenario we use these emails to debug the flow easily. In last line we get the actual error message which is in your case looks like a internal Salesforce error. And you are getting a gack ...
Tushar Sharma's user avatar
1 vote

Can't see managed package code/logs when logged into subscriber org with LMA

Here is a copy of some of our internal notes on this subject: Salesforce allows ISV (Independent Software Vendors) such as XXX to view debug logs generated by our Managed Packages in case the ...
Keith C's user avatar
  • 136k

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