-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.5.72 - Adding test coverage (#455)
* Adding test coverage for DELETE-based flows properly resetting parent fields
- Loading branch information
1 parent
5af446f
commit e06b086
Showing
8 changed files
with
160 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
129 changes: 129 additions & 0 deletions
129
extra-tests/flows/Rollup_Integration_refresh_on_delete_clears_value.flow-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Flow xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<actionCalls> | ||
<name>Perform_Rollup</name> | ||
<label>Perform Rollup</label> | ||
<locationX>176</locationX> | ||
<locationY>395</locationY> | ||
<actionName>Rollup</actionName> | ||
<actionType>apex</actionType> | ||
<dataTypeMappings> | ||
<typeName>T__oldRecordsToRollup</typeName> | ||
<typeValue>RollupChild__c</typeValue> | ||
</dataTypeMappings> | ||
<dataTypeMappings> | ||
<typeName>T__recordsToRollup</typeName> | ||
<typeValue>RollupChild__c</typeValue> | ||
</dataTypeMappings> | ||
<flowTransactionModel>CurrentTransaction</flowTransactionModel> | ||
<inputParameters> | ||
<name>lookupFieldOnCalcItem</name> | ||
<value> | ||
<stringValue>RollupParent__c</stringValue> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>lookupFieldOnOpObject</name> | ||
<value> | ||
<stringValue>Id</stringValue> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>recordsToRollup</name> | ||
<value> | ||
<elementReference>RecordsToRollup</elementReference> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>rollupContext</name> | ||
<value> | ||
<stringValue>DELETE</stringValue> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>rollupFieldOnCalcItem</name> | ||
<value> | ||
<stringValue>Id</stringValue> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>rollupFieldOnOpObject</name> | ||
<value> | ||
<stringValue>NumberField__c</stringValue> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>rollupOperation</name> | ||
<value> | ||
<stringValue>COUNT</stringValue> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>rollupSObjectName</name> | ||
<value> | ||
<stringValue>RollupParent__c</stringValue> | ||
</value> | ||
</inputParameters> | ||
<nameSegment>Rollup</nameSegment> | ||
<storeOutputAutomatically>true</storeOutputAutomatically> | ||
<versionSegment>1</versionSegment> | ||
</actionCalls> | ||
<apiVersion>58.0</apiVersion> | ||
<assignments> | ||
<name>Add_deleted_record_to_collection</name> | ||
<label>Add deleted record to collection</label> | ||
<locationX>176</locationX> | ||
<locationY>287</locationY> | ||
<assignmentItems> | ||
<assignToReference>RecordsToRollup</assignToReference> | ||
<operator>Add</operator> | ||
<value> | ||
<elementReference>$Record</elementReference> | ||
</value> | ||
</assignmentItems> | ||
<connector> | ||
<targetReference>Perform_Rollup</targetReference> | ||
</connector> | ||
</assignments> | ||
<environments>Default</environments> | ||
<interviewLabel>Rollup Integration - REFRESH on delete clears value {!$Flow.CurrentDateTime}</interviewLabel> | ||
<label>Rollup Integration - refresh on delete clears value</label> | ||
<processMetadataValues> | ||
<name>BuilderType</name> | ||
<value> | ||
<stringValue>LightningFlowBuilder</stringValue> | ||
</value> | ||
</processMetadataValues> | ||
<processMetadataValues> | ||
<name>CanvasMode</name> | ||
<value> | ||
<stringValue>AUTO_LAYOUT_CANVAS</stringValue> | ||
</value> | ||
</processMetadataValues> | ||
<processMetadataValues> | ||
<name>OriginBuilderType</name> | ||
<value> | ||
<stringValue>LightningFlowBuilder</stringValue> | ||
</value> | ||
</processMetadataValues> | ||
<processType>AutoLaunchedFlow</processType> | ||
<start> | ||
<locationX>50</locationX> | ||
<locationY>0</locationY> | ||
<connector> | ||
<targetReference>Add_deleted_record_to_collection</targetReference> | ||
</connector> | ||
<object>RollupChild__c</object> | ||
<recordTriggerType>Delete</recordTriggerType> | ||
<triggerType>RecordBeforeDelete</triggerType> | ||
</start> | ||
<status>Active</status> | ||
<variables> | ||
<name>RecordsToRollup</name> | ||
<dataType>SObject</dataType> | ||
<isCollection>true</isCollection> | ||
<isInput>true</isInput> | ||
<isOutput>false</isOutput> | ||
<objectType>RollupChild__c</objectType> | ||
</variables> | ||
</Flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters