Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
EnablementMeasureDefinition
Parent Type
File Suffix and Directory Location
EnablementMeasureDefinition components have the suffix .enablementMeasureDefinition and are stored in the enablementMeasureDefinitions folder.
Version
EnablementMeasureDefinition components are available in API version 61.0 and later.
Special Access Rules
To access Enablement measures, the Design and Deliver Enablement Programs permission is required. This permission is available with the Enablement add-on license.
Fields
| Field Name | Description |
|---|---|
| description |
|
| developerName |
|
| masterLabel |
|
| sourceMeasureObject |
|
| status |
|
EnablementMeasureSourceObjectDefinition
Defines the source object, fields, field values, and calculation method for the job-related activity you’re measuring.
| Field Name | Description |
|---|---|
| aggregateFieldApiName |
|
| aggregateFunction |
|
| dateFieldApiName |
|
| displayFieldApiName |
|
| filterLogic |
|
| filters |
|
| objectApiName |
|
| relatedMeasureObjects |
|
| userFieldApiName |
|
EnablementMeasureFilterDefinition
Represents the fields on the source object or related objects and the corresponding field values that further specify criteria for the activity you’re measuring.
| Field Name | Description |
|---|---|
| fieldApiName |
|
| fieldValue |
|
| operator |
|
| sequenceNumber |
|
EnablementMeasureRelatedObjectDefinition
Represents objects related to the source object. Related objects can further specify criteria for the activity you’re measuring. Related objects can also have additional filters. For example, maybe you’re measuring deals won for a specific product line. In this case, the source object is Opportunity, the related object is Opportunity Product, and the related object can have a filter for the specific product name.
| Field Name | Description |
|---|---|
| filterLogic |
|
| filters |
|
| idFieldApiName |
|
| objectApiName |
|
Declarative Metadata Sample Definition
The following is an example of an EnablementMeasureDefinition component.
1<?xml version="1.0" encoding="UTF-8"?>
2<EnablementMeasureDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
3 <description>Total amount in pipeline measure</description>
4 <developerName>TotalAmountInPipeline</developerName>
5 <masterLabel>Total Amount in Pipeline</masterLabel>
6 <status>Draft</status>
7 <sourceMeasureObject>
8 <aggregateFieldApiName>Amount</aggregateFieldApiName>
9 <aggregateFunction>Sum</aggregateFunction>
10 <dateFieldApiName>CreatedDate</dateFieldApiName>
11 <displayFieldApiName>Name</displayFieldApiName>
12 <objectApiName>Opportunity</objectApiName>
13 <userFieldApiName>OwnerId</userFieldApiName>
14 <filters>
15 <fieldApiName>StageName</fieldApiName>
16 <fieldValue>Closed Won</fieldValue>
17 <operator>Equals</operator>
18 <sequenceNumber>1</sequenceNumber>
19 </filters>
20 <relatedMeasureObjects>
21 <objectApiName>OpportunityLineItem</objectApiName>
22 <idFieldApiName>OpportunityId</idFieldApiName>
23 <filterLogic>1 OR 2</filterLogic>
24 <filters>
25 <fieldApiName>UnitPrice</fieldApiName>
26 <fieldValue>10000</fieldValue>
27 <operator>GreaterThan</operator>
28 <sequenceNumber>1</sequenceNumber>
29 </filters>
30 <filters>
31 <fieldApiName>TotalPrice</fieldApiName>
32 <fieldValue>10000</fieldValue>
33 <operator>GreaterThan</operator>
34 <sequenceNumber>2</sequenceNumber>
35 </filters>
36 </relatedMeasureObjects>
37 </sourceMeasureObject>
38</EnablementMeasureDefinition>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>TotalAmountInPipeline</members>
5 <name>EnablementMeasureDefinition</name>
6 </types>
7 <version>61.0</version>
8</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.