Skip to main content
Full Circle Insights

AccountResponseAttribution

Modifies cmpoints to add weight specified by accountWeight to CampaignMembers in allresponses that are associated to a Contact that is also associated to the Opportunity's Account.

void accountResponseAttribution(
    Id opId,
    Id accountId,
    Decimal accountWeight,
    Set<Id> accountcontactids,
    Map<Id, CampaignMember> allresponses,    
    Map<Id, Decimal> cmpoints)

Parameters

  • opId - Opportunity ID
  • accountId - The ID of the Opportunity's Account
  • accountWeight - Weight attributed to CampaignMembers associated to a Contact related to an Account equal to accountId
  • accountcontactids - Set of Contact IDs of Contacts related to the Account specified by accountId
  • allresponses - Map of CampaignMembers by their ID, a collection of CampaignMembers that are subject to being attributed attribution to the Opportunity specified in opId
  • 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?