Processes/Subflows
Create a Link to Third Party Pledge (Apex Trigger)
USYD Campaign member status update when new transaction created (subflow)
USYD Update Reporting Section Flags (subflow)
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