Implements a mechanism to exclude child records from being cloned based on configurable formulas. Introduces a Custom Metadata object to define exclusion rules, allowing administrators to specify formulas for different SObjects. Updates the cloning service to evaluate these formulas and filter out records that meet the exclusion criteria.
18 lines
670 B
XML
18 lines
670 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
<label>QuantityLessThanTwo</label>
|
|
<protected>false</protected>
|
|
<values>
|
|
<field>ExclusionFormula__c</field>
|
|
<value xsi:type="xsd:string">Quantity < 2</value>
|
|
</values>
|
|
<values>
|
|
<field>IsActive__c</field>
|
|
<value xsi:type="xsd:boolean">false</value>
|
|
</values>
|
|
<values>
|
|
<field>RelatedObject__c</field>
|
|
<value xsi:type="xsd:string">OpportunityLineItem</value>
|
|
</values>
|
|
</CustomMetadata>
|