You are here:
Set Up Automatic Updates For Fundraising Rollups in Nonprofit
Use a schedule-triggered flow to automatically receive updates to your fundraising rollup calculations.
| REQUIRED EDITIONS |
|---|
| Available in: Lightning Experience |
Available in: Enterprise, Performance, Unlimited, and Developer Editions with Education Cloud Available in: Enterprise, Unlimited, and Developer Editions with Nonprofit Cloud |
| User Permissions Needed | |
|---|---|
| To configure automatic updates for Fundraising rollups: | Fundraising_Admin permission set group OR |
Prerequisites:
- Enable person accounts.Note Person accounts were not built to work with Nonprofit Success Pack and therefore, are not supported for use with NPSP. If Person Accounts are not already enabled in your org, don't enable them. Once you turn on Person Accounts in your organization, you can't turn the feature off. See NPSP and Person Accounts in NPSP FAQ.
- Enable Data Pipelines.
- Set up a Data Processing Engine.
- Make sure that the DonorGiftSummary, GiftDesignation, and OutreachSummary definitions are available in the Data Processing Engine Definitions table.
- Make sure that users have access to the objects and fields that are used in the DPE definitions.
- From Setup, in the Quick Find box, enter Flows, and then under Process Automation, select Flows.
- Click New Flow.
- Select Schedule-Triggered Flow.
- Set the schedule to run the flow.
- Add an action element.
- Search for and select the Manage Fundraising DPE Definitions invocable action.
- Enter Automatic Rollup Updates or your preferred label as the action.
-
Create resources for the date input values.
- From Toolbox Manager, click New Resource.
- Select Formula as the resource type.
-
Enter an API name that describes the current calendar year formula.
For example, enter CURRENTCALENDARYEAR as the formula for the current calendar year.
- Select Date as the data type.
- Enter this formula: DATE(YEAR({!$Flow.CurrentDate}),1,1).
- Similarly, create formula resources for the Last Calendar Year by using the formula DATE(YEAR({!$Flow.CurrentDate})-1, 1, 1), and Last Two Calendar Year by using the formula DATE(YEAR({!$Flow.CurrentDate})-2, 1, 1).
- Add the three formulas that you created to the corresponding input date fields.
- For each of the three DPE definitions, select True to include the definition in the action, or select False to exclude it from the action.
-
Add a fault path to the action element.
To receive an email in case of an action fail, add a send email action that's triggered by the fault path.
-
Add a Batch Job Loop element after the action element.
- Add a loop element.
-
Enter a name for the element in the Label field.
For example, enter Batch Job Loop.
- Search for and select Output from Manage Fundraising DPE Definition as the collection variable, and then click Batch Job IDs List.
- Inside the loop, add a Wait for Conditions logic element and name it Wait For Batch Job To Complete.
-
Add a Wait Configuration labeled Batch Job Complete.
- Add the All Conditions Are Met (AND) wait condition.
- Select Current Item from Loop Batch Job Loop as the wait condition resource.
- Select Does Not Equal as the operator.
- Select Blank Value (Empty String) as the value.
- On the Resume Event tab, select Wait Until A Platform Event Message is Received.
- Select Batch Job Status Changed Event as the platform event.
- Select All Conditions Are Met (AND) as the condition requirement.
- Select Batch Job as the field and Current Item from Loop Batch_Job as the value.
-
Add another Wait Configuration labeled Time Out After A Day.
- Add the All Conditions Are Met (AND) wait condition.
- Select Current Item from Loop Batch Job Loop as the wait condition resource.
- Select Does Not Equal as the operator.
- Select Blank Value (Empty String) as the value.
- On the Resume Event tab, select Wait Until A Specified Time.
-
Set the date and time to wait for this event to be completed.
For example: for a flow that's scheduled to run daily, select Running Flow Interview, and then Interview Start Time as the base time, 24 as the offset number, and Hours as the offset unit.Note: Don't wait more than 24 hours on a flow scheduled to run daily.
- Leave the default path as is.
- Save your changes.
- Give the flow a label and an API name, and save the changes.
- Click Activate.
The Fundraising rollup calculations are updated automatically based on the schedule that you set in the flow. After the schedule-triggered flow runs, you can see the job progress in the table of recent batch jobs in Batch Jobs in Salesforce.

