Newer Version Available
FeatureParameterInteger
File Suffix and Directory Location
FeatureParameterInteger components have the suffix .featureParameterInteger. The components are stored in the featureParameters folder, which contains components for all the feature parameter metadata types.
Version
FeatureParameterInteger 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 | int | 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. Valid values are:
|
Declarative Metadata Sample Definition
The following is an example of a FeatureParameterInteger component.
1<?xml version="1.0" encoding="UTF-8"?>
2<FeatureParameterInteger xmlns="http://soap.sforce.com/2006/04/metadata">
3 <dataflowDirection>SubscriberToLmo</dataflowDirection>
4 <masterLabel>Current Project Count</masterLabel>
5 <value>42</value>
6</FeatureParameterInteger>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.