function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JuliusJulius 

Campaign Influence for Opportunity

Hi,

while working quite a lot with campaigns and opportunities, I'm faced with the problem to create campaign influence records for opportunities in batch (not manually)

Adding an influence for an contact or lead is quite easy; add a record to the table CampaignMember and that's it... 

 

But - in which table are records stored that define a relationship between an opportunity and a campaign? Can't find it - the prefix is 0BG - if this might help anybody.

 

Many thanks in advance!

CTU007CTU007

I am also trying to add "Campaign Influence" to my tabbed opportunity visualforce page, but cannot find the child relationship name for it in apex explorer.

 

Maybe my question is related to your question?

jkucerajkucera

Currently Campaign Influence is not exposed in the API.  It's on our roadmap, but not yet public.

 

awilawil

Hi John -

 

Any update on this?

 

Thanks.

Kirill_YunussovKirill_Yunussov

So, three years later, it's still not there. 

Chirag MehtaChirag Mehta

Any updates on this? years, days counting ...

wbrproductionswbrproductions

Some crickets chripin' in here.

The_London_ScottThe_London_Scott

Any update on CampaignInfluence in the API?  I have use cases where sales teams want to use campaigns to track actions related to sets of opportunities. But there is no way to mass-add opps to a campaign, so they cannot use campaigns for this.

Chirag MehtaChirag Mehta
Might be use apex code via trigger to do the required. Current workaround is really tedious and not acceptable approach, that update Primary Campaign field n times, where n is number of campaigns that you want to link the opportunity with
Mark Tyler CrawfordMark Tyler Crawford
This was delivered in winter 17. Check it out here:
https://releasenotes.docs.salesforce.com/en-us/winter17/release-notes/rn_sales_features_core_campaigns.htm