Processes/Subflows
Create a Link to Third Party Pledge (Apex Trigger)
Background of issue:
Batch processing in Flows are causing multiple updates on triggering record and is causing issues in Apex CPU Limit
Unit testing:
When a Transaction record is created or updated, when all conditions are met:
Transaction > Originating Transaction is not null
Transaction > Third Party Payoff is true
Transaction > Originating Transaction has changed or,
Transaction > Third Party Payoff has changed
Related Originating Transaction record is updated with the following value:
Related Originating Transaction > Third Party Pledge will be equal to the triggering Gift record
USYD Campaign member status update when new transaction created (subflow)
Background of issue:
Re-implemented as a subflow
Update Records elements can be merged into one
Unit testing:
When a Transaction record is created, all of the following conditions must be met:
Transaction > Campaign Appeal is not null
Transaction > Related to Void is false
Transaction > Write Off? is false
Transaction has a related Account
Related Account has a Primary Contact
All Campaign Members related to the Primary Contact with Status not equal to ‘Donated’ will be updated:
Start Date equals Transaction > Transaction Date
Stop Date equals Transaction > Transaction Date
Status equals 'Donated'
Related Account has a Secondary Contact
All Campaign Members related to the Secondary Contact with Status not equal to ‘Donated’ will be updated:
Start Date equals Transaction > Transaction Date
Stop Date equals Transaction > Transaction Date
Status equals 'Donated'
USYD Update Reporting Section Flags (subflow)
Background of issue:
Re-implemented as a subflow
Added a field update as an Assignment element.
Unit testing:
When a Transaction record is created or updated, the following fields are updated (as flags):
Send Pledge Reminder
Funds Raised Flag Static
Funds Received Flag Static
Special Category Flag
USYD Transaction Roll up to Gift Pledge fields (subflow)
Background of issue:
Re-implemented as a subflow from Process Builder
Unit testing:
Unit Testing can be done by manually creating a Transaction under an existing GIft as these fields cannot be manually configured on creating Batch.
Make sure fields are populated prior to the dependent fields below. Record type can be any but please refer to record type required below.
Transaction Type
Account
Acknowledgement
Amount
Method
Campaign Appeal
Designation
When a Transaction record is created or updated with the following fields:
Transactoin Record type = Soft Credit (Managed) OR Pledge Soft Credit (Managed)
THEN,
Related Gift record’s Usyd_Gift_Driver_Derivation__c will be TRUE
When a Transaction record is created or updated with the following fields:
Write Off? = TRUE
Record type = Pledge
Method = Pledge
Balance LESS THAN 0
THEN,
Related Gift record’s Pledge WO Designation will be Constituent Facing Name of Related Designation of Transaction record
Related Gift record’s Pledge WO Notation will be Pledge Write Off Notation of Transaction record
When a Transaction record is created or updated with a related Campaign Appeal record:
THEN,
Related Gift record’s USYD Campaign Appeal will be equal to Transaction record’s Campaign Appeal