Newer Version Available

This content describes an older version of this product. View Latest

FeatureParameterInteger

Represents an integer feature parameter in a packaging org that has access to the Feature Management App (FMA). Feature parameters let you drive app behavior and track activation metrics in subscriber orgs that install your package. This type extends the Metadata metadata type and inherits its fullName field.

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 only in packaging orgs that have access to the Feature Management App (FMA). For details, see Manage Features in the ISVforce 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:
  • LmoToSubscriber
  • SubscriberToLmo

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>