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.
RecordAggregationDefinition
Parent Type
File Suffix and Directory Location
RecordAggregationDefinition components have the suffix .RecordAggregationDefinition and are stored in the RecordAggregationDefinitions folder.
Version
RecordAggregationDefinition components are available in API version 59.0 and later.
Special Access Rules
To access the RecordAggregationDefinition metadata type, you must have the Record Aggregation permission set license and the Record Aggregation Access permission.
Fields
| Field Name | Description |
|---|---|
| aggregateFromObject |
|
| aggregateToObject |
|
| aggregationType |
|
| batchProcessingDefinition |
|
| description |
|
| displayName |
|
| onDemandProcDefinition |
|
| recordAggregationObject |
|
| status |
|
RecordAggregationObject
Represents an object in the record aggregation join sequence.
| Field Name | Description |
|---|---|
| associatedObject |
|
| developerName |
|
| filterLogic |
|
| masterLabel |
|
| recordAggregationJoinCondition |
|
| recordAggregationObjectFilter |
|
RecordAggregationJoinCondition
Represents a condition in a join between two record aggregation objects.
| Field Name | Description |
|---|---|
| joinField |
|
| navigationSequenceNumber |
|
| relatedJoinField |
|
| relatedRecordAggregationObject |
|
| type |
|
RecordAggregationObjectFilter
Represents a filter that is applied to the records of an object in the record aggregation join sequence. Available in API version 60.0 and later.
| Field Name | Description |
|---|---|
| associatedObjectField |
|
| operator |
|
| sequenceNumber |
|
| value |
|
Declarative Metadata Sample Definition
The following is an example of a RecordAggregationDefinition component.
1<?xml version="1.0" encoding="UTF-8"?>
2<RecordAggregationDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
3 <aggregateToObject>PartyRelationshipGroup</aggregateToObject>
4 <aggregateFromObject>PartyIncome</aggregateFromObject>
5 <status>Active</status>
6 <aggregationType>Record</aggregationType>
7 <description>Aggregate head of household's income to household</description>
8 <displayName>Party Income to Party Relationship Group</displayName>
9 <recordAggregationObject>
10 <associatedObject>PartyRelationshipGroup</associatedObject>
11 <masterLabel>Party Relationship Group Object</masterLabel>
12 <developerName>PartyRelationshipGroupObject</developerName>
13 <recordAggregationJoinCondition>
14 <joinField>Account</joinField>
15 <navigationSequenceNumber>1</navigationSequenceNumber>
16 <relatedJoinField>Account</relatedJoinField>
17 <relatedRecordAggregationObject>AccountContactrelationObject</relatedRecordAggregationObject>
18 <type>Intermediate</type>
19 </recordAggregationJoinCondition>
20 <recordAggregationObjectFilter>
21 <associatedObjectField>Type</associatedObjectField>
22 <operator>Equals</operator>
23 <value>Household</value>
24 <sequenceNumber>1</sequenceNumber>
25 </recordAggregationObjectFilter>
26 </recordAggregationObject>
27 <recordAggregationObject>
28 <associatedObject>AccountContactRelation</associatedObject>
29 <masterLabel>Account Contact Relation Object</masterLabel>
30 <developerName>AccountContactRelationObject</developerName>
31 <recordAggregationJoinCondition>
32 <joinField>Contact</joinField>
33 <navigationSequenceNumber>2</navigationSequenceNumber>
34 <relatedJoinField>Party</relatedJoinField>
35 <relatedRecordAggregationObject>PartyIncomeObject</relatedRecordAggregationObject>
36 <type>Intermediate</type>
37 </recordAggregationJoinCondition>
38 <recordAggregationObjectFilter>
39 <associatedObjectField>IsPrimaryMember</associatedObjectField>
40 <operator>Equals</operator>
41 <value>true</value>
42 <sequenceNumber>1</sequenceNumber>
43 </recordAggregationObjectFilter>
44 </recordAggregationObject>
45 <recordAggregationObject>
46 <associatedObject>PartyIncome</associatedObject>
47 <masterLabel>Party Income Object</masterLabel>
48 <developerName>PartyIncomeObject</developerName>
49 <filterLogic>1 AND 2</filterLogic>
50 <recordAggregationObjectFilter>
51 <associatedObjectField>IncomeFrequency</associatedObjectField>
52 <operator>Equals</operator>
53 <value>Monthly</value>
54 <sequenceNumber>1</sequenceNumber>
55 </recordAggregationObjectFilter>
56 <recordAggregationObjectFilter>
57 <associatedObjectField>IncomeStatus</associatedObjectField>
58 <operator>Equals</operator>
59 <value>Active</value>
60 <sequenceNumber>2</sequenceNumber>
61 </recordAggregationObjectFilter>
62 </recordAggregationObject>
63</RecordAggregationDefinition>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>*</members>
5 <name>RecordAggregationDefinition</name>
6 </types>
7 <version>60.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.