Skip to main content
Full Circle Insights

GetIncrementalCMpoints

Used for logging purposes - calculates the incremental points added to campaign members.

Map<Id, Decimal> getIncrementalCMpoints(
    Map<Id, Decimal> prevCMpoints,
    Map<Id, Decimal> currentCMpoints)​

Parameters

  • prevCMpoints - Map from CampaignMember to attribution weighting points
  • currentCMpoints - Map from CampaignMember to attribution weighting points, a modified prevCMpoints

Returns

A map from CampaignMembers to attribution weighting points. Contains all the CampaignMembers in currentCMpoints. CampaignMember's mapped value is equal to their mapped value in currentCMpoints subtracted from their mapped value in prevCMpoints. If they don't exist in prevCMpoints, then it equals their mapped value in currentCMpoints.

  • Was this article helpful?