Skip to main content
Full Circle Insights


Modifies cmpoints to add weight specified by customObjFieldWeighting, a mapping of Campaign and CampaignMember fields to field-value-weighting maps. 

void customFieldValueWeighting(
    Id opId,
    Map<String, Map<String, Map<String, Decimal>>> customObjFieldWeighting,
    Map<Id, CampaignMember> allresponses,    
    Map<Id, Decimal> cmpoints)


  • opId - Opportunity ID
  • customObjFieldWeighting - The first key in the map is a sObject type name. Its value is a map where the keys are field names, and the value is a map of field values to weighting amounts
  • allresponses - Map of CampaignMembers by their ID, a collection of CampaignMembers that are subject to being attributed weight 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?