Skip to main content
Full Circle Insights

ContactTypeAttribution

Modifies cmpoints to add weight specified by originatingContactWeight to CampaignMembers contained in CreatingResponses, primaryContactWeight to CampaignMembers contained in PrimaryResponses, and otherContactWeight to CampaignMembers contained in OtherResponses. CampaignMembers can only be part of one of these CampaignMember maps.

void contactTypeAttribution(
    Id opId,        
    Map<Id, CampaignMember> allresponses,
    Map<Id, CampaignMember> CreatingResponses,
    Map<Id, CampaignMember> PrimaryResponses,
    Map<Id, CampaignMember> OtherResponses,
    Decimal originatingContactWeight,
    Decimal primaryContactWeight,
    Decimal otherContactWeight,
    Map<Id, Decimal> cmpoints)​

Parameters

  • opId - Opportunity ID
  • allresponses - Map of CampaignMembers by their ID, a collection of CampaignMembers that are subject to being attributed weight to the Opportunity specified in opId
  • CreatingResponses - [Not used anymore]
  • PrimaryResponses - Map of CampaignMembers by their ID, a collection of responses on primary contacts for the Opportunity
  • OtherResponses - Map of CampaignMembers by their ID, a collection of responses on other contacts for the Opportunity
  • originatingContactWeight - [Not used anymore]
  • primaryContactWeight - Weight added to CampaignMembers contained in PrimaryResponses
  • otherContactWeight - Weight added to CampaignMembers contained in OtherResponses
  • cmpoints - Map from CampaignMember to attribution weighting points. The points are used to determine what fraction of the Opportunity's revenue it will be attributed
  • Was this article helpful?