Skip to main content
Hi,

 

We are working on a trigger that automaticaly creates an Opportunity.  In the trigger we are adding a Contact to the Contact Role related list.

 

Our problem is that we'd like the "Primary Campaign Influence" to be set as it would be if a user were to manullay create an Opportunity from the Contact record.  The Campaign Influence related list is being populated correctly but "Primary" isn't being marked.

 

How can we use a trigger to set the Primary Campaign Influence?  Is there a way to make it look like we are creating the Opportunity directly from the Contact?
1 resposta
  1. 22 de mar. de 2014, 00:08
    Hi Emily,

     

    Are you refer to Campaign Influence related list in Opportunity.

     

    If yes, I do not think Campaign Influence for Opportunity object is currently exposed.