---
schema_version: "1"
id: 14d3baa06be2ca14450122602fbc3a36aaa84126b92e3dd65c664c40c8868e43
title: CampaignInfluence
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_campaigninfluence.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_campaigninfluence.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 342135b18df0abe6d32dbab99b0a1dae77d928e91a5c6338818904f2ef0d31c0
description: Represents the association between a campaign and an opportunity in Customizable Campaign Influence. This object is available in API version 37.0 and later.
---
# CampaignInfluence

Represents the association between a campaign and an opportunity in Customizable Campaign Influence. This object is available in API version 37.0 and later.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

This information applies only to Customizable Campaign Influence and not to [Campaign Influence 1.0](https://help.salesforce.com/s/articleView?id=sf.campaigns_influence_original.htm&language=en_US) .

To ingest this object in Data Cloud, set up the Data Cloud Salesforce Connector permission set. See [Enable Object and Field Permissions for CRM Connections.](https://help.salesforce.com/s/articleView?id=data.c360_a_crm_enable_object_and_field_permissions.htm&type=5&language=en_US "HTML (New Window)")

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

## Special Access Rules

To access this object, Customizable Campaign Influence must be enabled. Customer Portal users can’t access this object.

## Fields

| Field Name | Details |
| --- | --- |
| CampaignId | 
Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the campaign that’s related to the opportunity.



 |
| CampaignMemberId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the campaign member related to the opportunity. Not available in the UI.



 |
| ContactId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

The ID of the contact on the associated opportunity.





 |
| Influence | 

Type

percent

Properties

Create, Defaulted on create, Filter, Nillable, Sort, Update

Description

The percentage of the Amount field for the related opportunity that’s attributed to the campaign.





 |
| ModelId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the campaign influence model that’s related to the record.





 |
| OpportunityContactRoleId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The opportunity contact role ID of the related opportunity. Not available in the UI.



 |
| OpportunityId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the related opportunity.



 |
| RevenueShare | 

Type

currency

Properties

Filter, Nillable, Sort

Description

The amount of revenue from the related opportunity attributed to the campaign.



 |

## Usage

Use this object to create campaign influence records for your custom campaign influence models. Don’t create campaign influence records for the Primary Campaign Source model. Records added to the Primary Campaign Source model via the API are deleted when the model is recalculated.