Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Processes/Subflows

  • Create a Link to Third Party Pledge (Apex Trigger)

  • USYD Campaign member status update when new transaction created (subflow)

  • USYD Transaction Update (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:

  1. When a Transaction record is created or updated, when all conditions are met:

    1. Transaction > Originating Transaction is not null

    2. Transaction > Third Party Payoff is true

    3. Transaction > Originating Transaction has changed or,

    4. Transaction > Third Party Payoff has changed

  2. Related Originating Transaction record is updated with the following value:

    1. 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:

  1. When a Transaction record is created, all of the following conditions must be met:

    1. Transaction > Campaign Appeal is not null

    2. Transaction > Related to Void is false

    3. Transaction > Write Off? is false

    4. Transaction has a related Account

  2. Related Account has a Primary Contact

    1. All Campaign Members related to the Primary Contact with Status not equal to ‘Donated’ will be updated:

      1. Start Date equals Transaction > Transaction Date

      2. Stop Date equals Transaction > Transaction Date

      3. Status equals 'Donated'

  3. Related Account has a Secondary Contact

    1. All Campaign Members related to the Secondary Contact with Status not equal to ‘Donated’ will be updated:

      1. Start Date equals Transaction > Transaction Date

      2. Stop Date equals Transaction > Transaction Date

      3. Status equals 'Donated'

...

USYD Transaction Update (Subflow)

Background of issue:

  • Re-implemented as a subflow

  • Added a field update as an Assignment element.

Unit testing:

  1. When a Transaction record is created or updated, the following fields are updated (as flags):

    1. Send Pledge Reminder

    2. Funds Raised Flag Static

    3. Funds Received Flag Static

    4. Special Category Flag

    5. If Transaction > Originating Soft Credit Transaction is not null and Third Party Payoff equals true:

      1. Update Transaction > Third Party Pledge equals Transaction > Gift/Pledge Number

...