Skip to content

Overview#

Class name: CopyGauBetweenCampaignsFlowComponent Friendly name: GAU Campaign Copy Category: MoveData: NPSP Purpose: Copies General Accounting Unit (GAU) allocation configurations from a source campaign to a target campaign

Class description#

This component facilitates the inheritance of NPSP allocation structures between campaigns, typically used when creating child campaigns that should inherit the GAU allocation patterns from their parent campaigns. The class synchronises allocation records by copying missing allocations from source to target and removing allocations that exist in target but not in source.

Input parameters#

Parameter API name Type Description
Source Campaign ID SourceCampaignId String ID of the source campaign containing GAU allocations to copy
Target Campaign ID TargetCampaignId String ID of the target campaign that will receive the GAU allocations

Output parameters#

None

Behaviour#

Allocation creation#

  • Creates new npsp__Allocation__c records for source allocations not found in target
  • Assigns target campaign ID to new allocation records
  • Preserves all allocation properties (amount, percent, GAU reference)

Allocation preservation#

  • Keeps existing target allocations that have exact matches in source
  • Maintains existing record IDs for matched allocations

Allocation deletion#

  • Removes target allocations that have no corresponding match in source
  • Ensures target campaign exactly mirrors source campaign allocation structure

Dependencies#

Required objects#

  • Campaign: Standard Salesforce object
  • npsp__Allocation__c: NPSP allocation object
  • npsp__General_Accounting_Unit__c: NPSP GAU object
Ask MoveData AI
Ask about setup, configuration, or troubleshooting
How can I help you with MoveData today?