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개
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.