RelatedRecordAssocCriteria defines criteria for automatically linking business records, such as accounts, leads, opportunities, and cases, to the branches that work with them. It configures the Record Association Builder's association logic; it is not an association record. The supported associationType is BranchManagement.
The criteria combine a reference object, a triggering event, a formula, and a status. A custom Apex handler extends this logic to objects that the Record Association Builder does not directly support.
Key Elements
| Element | What the Element Controls |
|---|---|
associationType |
Required. The association type. The supported value is BranchManagement. |
referenceObject |
Required. Identifies the object whose events are evaluated by the criteria. |
eventType |
Required. Selects the event that triggers association creation: Create or Update. |
preCondition |
Required. A formula that causes a new association to be created when it evaluates to true. |
status |
Required. Sets the criteria's status to Active, Draft, or Inactive. |
selectedOwnerField |
Specifies a field to use instead of the default Owner ID when supplying the owner reference. |
associationHandlerApexClass |
Names a custom Apex class that creates association records for an object the Record Association Builder does not directly support. The class must implement fscwmgen.BranchManagementAssociationHandler. |
masterLabel |
Required. The internal label of the association criteria. This label is not translated. |
isProtected |
An auto-generated value that defaults to false and does not affect this metadata type's behavior. It is not an access restriction or activation control. |
Behavior and Constraints
Using this type requires the Financial Services Cloud Extension permission set.
Read referenceObject, eventType, preCondition, and status together. The reference object identifies which object's events are evaluated, the event selects when association creation is triggered, the formula supplies the condition, and the status distinguishes active, draft, and inactive criteria.
An Update event still triggers creation of a new association. It is not an instruction to update an existing association. These settings define association-creation criteria, not a general policy for keeping existing associations synchronized.
For example, a criterion can use Account as its referenceObject, Create as its eventType, and [Account].AnnualRevenue > 3000000 as its preCondition. These are example settings, not required values or defaults.
When associations do not follow record ownership as expected, check selectedOwnerField. If specified, it substitutes another field for the default Owner ID. Changing this field changes which field supplies the owner reference used by the criteria.
For an unsupported object, associationHandlerApexClass is an extension mechanism, not just a descriptive link to a class. The class must implement fscwmgen.BranchManagementAssociationHandler and return a list of Branch Unit Related Records. Each returned record must populate at least:
-
BranchUnitId: the current branch unit of the user or contact. -
BusinessUnitMemberId: the Banker ID of the user or contact. -
RelatedRecordId: the ID of the custom object record to be related.
Deployment and Retrieval
Components use the .relatedRecordAssocCriteria suffix and are stored in the relatedRecordAssocCriteria folder. The type extends Metadata and inherits its fullName field.
In a package.xml manifest, use RelatedRecordAssocCriteria as the type name. The type supports * as the member wildcard for deployment and retrieval.
A component definition requires associationType, eventType, masterLabel, preCondition, referenceObject, and status. The label is internal and is not translated; isProtected does not control whether the criteria are active or who can use them.
Deployment dependency review must account for more than the explicit class, object, and owner-field references. Fields used inside preCondition also matter. Inspecting only referenceObject and selectedOwnerField can miss formula dependencies.
Relationships
The explicit metadata connections identify the custom handler class, the reference object, and the alternate owner field. Formula field references inside preCondition are additional dependencies to consider during impact analysis.
References
-
ApexClass:associationHandlerApexClass. -
CustomObject:referenceObject. -
CustomField:selectedOwnerField.
Common Questions
Does an Update event update an existing branch association?
No. eventType set to Update selects a reference-object event that triggers creation of a new association. It does not define an update operation on an existing association.
Can I use RelatedRecordAssocCriteria with a custom object?
For an object the Record Association Builder does not directly support, specify associationHandlerApexClass. The class must implement fscwmgen.BranchManagementAssociationHandler and return Branch Unit Related Records with at least BranchUnitId, BusinessUnitMemberId, and RelatedRecordId populated.
Why are associations using a different field instead of Owner ID?
Check selectedOwnerField. This setting replaces the default Owner ID with the specified field as the source of the owner reference.
Does isProtected restrict access or activate the criteria?
No. isProtected is auto-generated, defaults to false, and does not affect behavior. status distinguishes Active, Draft, and Inactive criteria. Using the type requires the Financial Services Cloud Extension permission set.
Can I retrieve all RelatedRecordAssocCriteria components with a wildcard?
Yes. Use the RelatedRecordAssocCriteria type with * as the member in package.xml. Components are stored in the relatedRecordAssocCriteria folder with the .relatedRecordAssocCriteria suffix.