Questions tagged [feature-management]
The feature-management tag has no usage guidance.
34
questions
0
votes
1
answer
68
views
Free and paid tiers for AppExchange app
Is it possible for a paid AppExchange app to charge 0 USD for Basic subscription and > 0 USD for Premium? And activate the Premium subscription using the FeatureManagement functionality. What are ...
0
votes
1
answer
20
views
Not able to create version after adding 2GP Feature Parameters
I have a 2GP managed package where I added a feature parameter metadata file (Integer). I have created multiple versions of this project until adding the feature parameter metadata files. After ...
0
votes
1
answer
49
views
Is it not possible to use FeatureManagment.checkPermission inside a package manage for a custom permission which is not included in that package
I have tried accessing the value inside the package, but the FeatureManagement.checkPermission() is returning false, whereas when the same Function is executed anonymously It returns true, indicating ...
2
votes
1
answer
67
views
Delay of update Feature Management Integer parameter from subscriber org to LMO
I have integer feature management parameter (IFMP) of type Subscriber to LMO.
I have code which updates IFMP in subscriber org where is installed managed package (2GP) but new value is updated in LMO ...
0
votes
0
answers
298
views
Licenses: What Permission Set & Feature Licenses go with what User Licenses?
IIUC, the purposes of my org's User Licenses are:
Community: log in to Community, aka Site, aka Experience Cloud?
Identity: also log in to Community, but different somehow? (unused)
Salesforce: log ...
2
votes
1
answer
92
views
Package a Default for an FMA Date Feature Parameter
What is the goal?
The goal is to track when the managed package was installed on the customer's org and be able to read the date on the customer's side.
What is the current solution I am thinking of?
...
1
vote
1
answer
88
views
Strange error when releasing a new package version: Cannot modify managed object: entity=PackageIntegerValue
I have custom feature parameters in my application. However, I haven't modified them but still I received the following error
Message delivering: CustomFeatureParameter: Cannot modify managed
object: ...
1
vote
1
answer
111
views
Salesforce Try Catch does not work with FeatureManagement checkPermission
When working with FeatureManagement.checkPermission() a try-catch block does not catch system exceptions.
How to replicate:
Run the code below in execute anonymous. You will find that you receive a ...
1
vote
1
answer
34
views
I am trying to use method FeatureManagement.changeProtection to make Custom Metadata Object public but it doesn't work
I am trying to use method FeatureManagement.changeProtection to make Custom Metadata Object public but it doesn't work. I know that Custom Metadata types and Custom settings and External and Big ...
0
votes
1
answer
59
views
How do I define a dependency in 2GMP for certain Salesforce feature like Quote object?
How do I define a dependency in 2GMP for certain Salesforce feature like Quote object?
I need to release a package extension which should depend on Quote object.
How should I define such dependency?
...
0
votes
1
answer
57
views
Is there a way to implement feature parameters collection inside post install script?
Looks like Post Install script doesn't update Feature Parameters values.
I tried to use Without Sharing context and enqueueing a queueable job but nothing helps.
public inherited sharing class ...
1
vote
1
answer
211
views
What can be the possible cause of error "Unable to retrieve feature parameter Display. No results found."?
What can be the possible cause of error Unable to retrieve feature parameter Display. No results found.?
The line which fails is the following:
System.FeatureManagement.checkPackageIntegerValue('...
1
vote
1
answer
240
views
Is there any way to set feature parameters for beta versions which did not pass security review?
Is there any way set feature parameters for package beta versions which did not pass security review?
Assuming you are going to release a new version of package which will include feature parameters.
...
0
votes
1
answer
118
views
How to add feature based limit in second generation package scratch org?
I am trying to develop a second generation package with a scratch org, I need to add feature based limit parameters, however since scratch org in second gen package don't have the actual package, I ...
2
votes
1
answer
1k
views
What does WDC stand for?
It's a feature for badges and thankyous that can be awarded to internal users.
There is lots of documentation on what it does and how to use it, but I am having the most difficult time finding the ...
3
votes
0
answers
296
views
Unable to perform Create, Edit, Delete on Protected Custom Object records in packaging org
I am trying to understand how the protected custom object works within a package context. With the help of Salesforce support, I was able to enable Feature Management option in the sample packaging ...
4
votes
0
answers
116
views
Feature Management Testing for Beta Package
We have used feature management for one of the packages. We would like to test the beta package, but we can't see the option to set Feature Management parameters in License Management Org?
When we try ...
2
votes
1
answer
980
views
Developing and deploying code using a trunk-based model in Salesforce
Disclaimer: I am not a Salesforce developer. I am trying to understand how to develop and deliver "features" incrementally to a production environment using trunk-based development.
Trunk ...
2
votes
1
answer
1k
views
Create Scratch Org Definition file
To create a scratch org, a Scratch Org definition file should be created. Is there any way to identify the list of features and settings required?
Note: Our org has a lot of features as it is ...
0
votes
0
answers
88
views
Different license types for AppExchange app
We want to sell 2 different license types for our AppExchange app: Admin and User. The difference is that only an Admin can make changes to the custom metadata types that define the app configuration.
...
0
votes
1
answer
424
views
How do the FeatureManagement class methods identify the package?
The FeatureManagement Class methods include the word package e.g.:
checkPackageBooleanValue(String apiName);
and the apiName passed in doesn't have any namespace in the documentation examples. So ...
6
votes
0
answers
166
views
2nd gen package version with ancestor is failing with custom object with "protected" visibility
I'm having issues when creating a package version with ancestor that contains a custom object with visibility set to "Protected". Everytime I try I get this error:
xxx: Cannot modify managed object: ...
10
votes
2
answers
457
views
Use FMA Features for per-user licensing
As I understand the Salesforce FMA, you can enable certain Boolean toggles per LMA license. But those licences are per org, either:
As Site-wide license for all users of a subscriber org
An amount of ...
3
votes
0
answers
266
views
Managed Package: Feature Parameters - Advanced Usage
In our managed package we are planning to use Feature Parameters (in particular LMO to Subscriber, boolean) to be able to enable/disable feature in subscribers orgs right from LMO/FMA.
After reading ...
3
votes
1
answer
229
views
Fine-grained app licensing using FMA and Permission Set Groups
Salesforce.com own apps are licenced using a fine-grained hierarchy of user licenses and add-on licences where each license has costs and restricts what I can do in an app.
As an ISV selling Managed ...
2
votes
1
answer
92
views
Revert Public Visibility to Protected Prior to Packaging
I have a regular custom object that was marked as Protected in my 1GP packaging org. It has been included in the last few releases of the package as Protected.
In my DX Scratch Org, I had to ...
6
votes
1
answer
3k
views
Lightning: Hide Utility Bar Item based on conditions
We are using utility bar component to display notifications for users: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_js_utility.htm
But according ...
2
votes
1
answer
92
views
How to restrict your lighting component to display only in Internal (Employee) Community and not in Partner or Customer Communities?
How to restrict your lighting component to display only in Internal (Employee) Community and not in Partner or Customer Communities?
Has anyone tried to do the above?
Can you do it using Feature ...
12
votes
3
answers
1k
views
Efficiently merge handle parallel feature branches in SFDX
Imagine a team of 5 developers using DX scratch orgs (using Salesforce' Falcon Template) for working on multiple features in parallel.
They start from a clean packaging org and a clean Git master. ...
2
votes
1
answer
363
views
FMA parameter update in LMO org using apex
We recently started using FMA app to manage some features in our managed package app. One of the requirement we have right now is on License create/update we need to update one of our FMA parameter (...
2
votes
1
answer
975
views
How to override System.FeatureManagement.checkPackageBooleanValue in development org
We are trying to use - Feature Parameters in one of the applications we are building. Got most of the info from https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/...
3
votes
0
answers
172
views
Design pattern to check FMA in multiple places in Lightning Component
We are building a managed package, we are having 10 business modules which is built on lightning component.
Recently we got a requirement to render the certain modules based on the feature management ...
1
vote
1
answer
723
views
Feature based branching [closed]
Wanted to get few suggestions from the community regarding feature based branching strategy. We are a large healthcare company with fair bit of presence on Salesforce.com platform.
We currently ...
22
votes
3
answers
27k
views
How can I Efficiently Check if the Running User has a Custom Permission?
Is there any way to check in Apex if the running user has a specific Custom Permission? The best I know of using available methods involves two separate SOQL queries:
public static Boolean ...