October 11, 2016

Disabling NPSP Triggers

Although Smart Sandbox automatically disables triggers during a transfer, it is not possible to do this for triggers in a Managed Package.  Fortunately, the kind folks at Salesforce Foundation included ways to “override” the NPSP triggers before running your data transfer. See below for instructions on how to disable triggers in your version of the Starter Pack.

Non-Profit Starter Pack Version 3
  1. Create a custom object tab by clicking Setup > Create > Tabs > Custom Object Tabs > New
  2. Select the “Trigger Handler” object, assign a style, and click Next.
  3. Add to Profiles. We suggest only making the tab visible to the System Administrator:
  4. Navigate to your new Tab and create a list view with the following fields:
    • Trigger Handler Name
    • Active
  5. Select All items in the List and uncheck “Active” on all records.
  6. Run the data transfer and then repeat step 5 to re-active all records.

Tip: Create this tab in production so you don’t have to repeat it in future sandboxes.

Non-Profit Starter Pack Version 2 and Earlier
  1. Locate Custom Settings by going to Setup > Custom settings
  2. Click “Manage” on Contacts and Orgs Settings and set the following conditions:
    • Roll Up Opps in Triggers → False
    • DISABLE_HouseholdAfter_trigger → True
    • DISABLE_HouseholdBefore_trigger → True
    • DISABLE_Household_Opportunity_trigger → True
    • DISABLE_Households_trigger → True
    • DISABLE_OpportunityRollup_trigger → True
  3. Click “Manage” on Household Settings and set the following conditions:
    • Disable Account Model Trigger → True
    • Enable Opportunity Contact Role Trigger → False
    • DISABLE_IndividualAccounts_trigger → True
    • DISABLE_OpportunityAccount_trigger → True
    • DISABLE_OpportunityContactRoles_trigger → True
    • DISABLE_OpportunityPayments_trigger → True
  4. Run the transfer and then repeat steps 2 and 3 to revert to the original state.

Leave A Comment

Leave a Reply