You are here:
Configure Advanced Rebate and Accrual Post-Processing - Source Generation DPE
Write accrual calculation results back to Salesforce Core, aggregated by your custom dimension.
Required Editions
| Available in: Enterprise, Unlimited, and Developer Editions that have Rebate and Accrual Management Advanced enabled. |
-
Create New Field on Program Rebate Type Accrual Sources:
- Create a custom field for your anchor value (e.g., Region__c)
- This field will store the dimension value on each Accrual Source record
-
Select Field as Input in Data Source Node:
- Open the Program Rebate Type Accrual Sources data source node
- Select your newly created anchor field
-
Pass Through Join Node:
- Ensure the field flows through: Enrich with Rebate Type Accrual Reference Numbers
-
Create AnchorString Formula:
- Add a formula field on the appropriate node
- Name it Anchor1String (or Anchor2String, Anchor3String)
-
Formula: IF(CONTAINS({AggregationCriteria}, "Region__c")==true, {Anchor1}, "_")
Replace "Region__c" with your field name as it appears in the Program Rebate Type, and
{Anchor1} with the anchor field from the DLO.
This formula returns the anchor value if configured, or "_" if not used.
-
Update uniqueRefKey Formula:
- Navigate to: Build Unique Key for Existing Sources
- Locate the uniqueRefKey formula
-
Add your AnchorString to the concatenation
For example, Include {Anchor1String} in the CONCAT function
-
Select Anchor1String Across Period Processing Nodes. Select the Anchor1String field in
these six nodes:
- Populate Rebate Type and Period Details
- Combine Period Type and Output Data
- Remove Unnecessary Fields
- Add Latest Tier Information
- Add Prior Period Totals
- Add Current Period Totals
-
Select Anchor1String for Both Sources:
- Navigate to: Combine Current and Prior Period Amounts
- This node has two input sources. Select Anchor1String from both sources
-
Add Merge Period Formula:
- Navigate to: Merge Period values
- Create a formula field: IF(ISBLANK({AccruedAnchor1String}),{PriorAnchor1String},{AccruedAnchor1String} )
This ensures the anchor value carries forward correctly when combining current and prior period data. -
Select Anchor1 Across Four Nodes.
- Enrich with Program Member Details
- Check for Existing Member Accruals
- Check for Existing Rebate Type Accruals
- Add Tier Values to Records
-
Update UniqueRefKey on New Sources Node:
- Navigate to: Build Unique Key for New Sources
- Update the UniqueRefKey formula to include Anchor1: CONCAT({ProgramRebateTypeAccrualRef},"_",{MemberAccrualReferenceNumber},"_",{BenefitString},"_",{Member},"_",{Product},"_",{Anchor1})
This ensures each unique combination of member, product, and custom dimension gets its own Accrual Source record. -
Select Anchor1 in Filter Node:
- Navigate to: Filter Unique Records For Sources Generation
- In the Match node configuration, select Anchor1 from this source
-
Select Anchor from Other Source:
- In the same Match node, select Anchor1 from the other input source. This ensures matching occurs on the anchor dimension
-
Create Calculate Accrual Source Fields Formula:
- Navigate to: Calculate Accrual Source Fields
-
Create a formula for your anchor field:
IF(ISBLANK({Id}),IF(({Anchor1String}=="_")==true,NULL,{Anchor1String}),{ExistingAnchor1})
Logic: For new records: Uses the anchor value if configured, otherwise NULL. For existing records: Preserves the existing anchor value.
-
Map Anchor1 in Writeback Node:
- Navigate to: Create or Update Accrual Source Details
- Map your calculated anchor field to the Anchor1 field on Program Rebate Type Accrual Sources.
This writes the final aggregated results back to Salesforce Core
Did this article solve your issue?
Let us know so we can improve!
