Processes/Sub-flows
USYD Update Pledge _Updates_pledge_status_if_gift_pledge_recordtype_is_Pledge_and_Pledge_Status (subflow)
...
Found that changes will be made even if change on field is not exactly changed.
Fix/Change:
Specific testing on this flow’s added criteria to check if Usyd_Gift_Driver_Derivation__c = false can only be done through debug of the flow as this is set to false when flow execution gets to USYD Gift Driver Derivation (subflow).
Unit testing:
Open a gift record and set Usyd_Gift_Driver_Derivation__c to false through anonymous apex.
...
Open a GIft Implementation record and make sure Stage is not 5. GI - Kick Off and Gift Pledge field is NOT populated with a GIft record.
Navigate to the related Opportunity record and open any of its related Gift record.
Do an update on the Gift record on any fields and save.
Check the Gift Implementation record that the Stage is updated to 5. GI - Kick Off and Gift/Pledge field is populated.
...
Anchor | ||||
---|---|---|---|---|
|
...
_Updates_pledge_status_if_gift_pledge_recordtype_is_Pledge_and_Pledge_Status (subflow)
Background of issue:
Logic is in a containing flow and must be subdivided for a more clear view of its function.
...