Newer Version Available
FeatureParameterBoolean
File Suffix and Directory Location
FeatureParameterBoolean components have the suffix .featureParameterBoolean. The components are stored in the featureParameters folder, which contains components for all the feature parameter metadata types.
Version
FeatureParameterBoolean components are available in API version 41.0 and later.
Special Access Rules
Available to package developers who have access to the Feature Management App (FMA). For details, see Manage Features in the Second-Generation Managed Packaging Developer Guide.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| dataFlowDirection | FeatureParameterDataFlowDirection | After a package containing the components is installed, indicates whether the feature parameter’s value is editable in your License Management Org (LMO) and read-only in your customer’s org or the other way around. |
| masterLabel | string | The feature parameter name that appears in the user interface. |
| value | boolean | The default value for this feature parameter. You can reference this value in your code, just like you reference other values in a subscriber’s org. |
FeatureParameterDataFlowDirection
Represents the direction of the data flow between your License Management Org (LMO) and the customer’s org.
| Field Name | Field Type | Description |
|---|---|---|
| FeatureParameterDataFlowDirection | string |
After a package containing the components is installed, indicates whether the feature parameter’s value is editable in your License Management Org (LMO) and read-only in your customer’s org or the other way around.
|
Declarative Metadata Sample Definition
The following is an example of a FeatureParameterBoolean component.
1<?xml version="1.0" encoding="UTF-8"?>
2<FeatureParameterBoolean xmlns="http://soap.sforce.com/2006/04/metadata">
3 <dataflowDirection>SubscriberToLmo</dataflowDirection>
4 <masterLabel>Budget Tracking Enabled</masterLabel>
5 <value>false</value>
6</FeatureParameterBoolean>The following is an example package.xml that references the previous definition (and the definitions for the other feature parameter types).
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>FeatureParameterBoolean</name>
6 </types>
7 <types>
8 <members>*</members>
9 <name>FeatureParameterDate</name>
10 </types>
11 <types>
12 <members>*</members>
13 <name>FeatureParameterInteger</name>
14 </types>
15 <version>41.0</version>
16</Package>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.