---
schema_version: "1"
id: 70d1682cd9702bf8035a4d051ec0fbe31641f95d92664bb59705cd65c063378a
title: CampaignInfluenceModel
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_campaigninfluencemodel.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_campaigninfluencemodel.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 29d97b8237a618e5d62ec3925b2bbf65af3f20a99a608ace96f5c68e3c1e1e5c
description: This read-only object represents a campaign influence model in Customizable Campaign Influence. Use campaign influence models to group CampaignInfluence records created by a specific set of triggers and workflows that you define. The Primary Campaign Source influence model is the default model. This object is available in API version 37.0 and later.
---
# CampaignInfluenceModel

This read-only object represents a campaign influence model in Customizable Campaign Influence. Use campaign influence models to group CampaignInfluence records created by a specific set of triggers and workflows that you define. The Primary Campaign Source influence model is the default model. 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](https://help.salesforce.com/s/articleView?id=sales.campaigns_influence_customizable.htm&type=5&language=en_US "HTML (New Window)") and not to [Campaign Influence 1.0](https://help.salesforce.com/s/articleView?id=sales.campaigns_influence_original.htm&type=5&language=en_US "HTML (New Window)").

## Supported Calls

describeSObjects(), query(), retrieve()

## 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 |
| --- | --- |
| DeveloperName | 
Type

string

Properties

Filter, Group, Sort

Description

The API name of the influence model. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. In managed packages, this field prevents naming conflicts on package installations. With this field, a developer can change the object’s name in a managed package and the changes are reflected in a subscriber’s organization.

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

#### Note

Only users with View DeveloperName OR View Setup and Configuration permission can view, group, sort, and filter this field.















 |
| IsActive | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the model is active. Active models can generate campaign influence records. Deactivating a model deletes its campaign influence records. Custom models are always active and this field is ignored.



 |
| IsDefaultModel | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the model is the default model (true) or not (false). CampaignInfluence records associated with the default model appear in 3 locations.

- The Campaign Influence related list on opportunities
- The Influenced Opportunities related list on campaigns
- The Campaign Statistics section on campaigns

The value of IsDefaultModel can only be true for 1 model at a time.



 |
| IsModelLocked | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Indicates whether the model is locked (true) or not (false). Records for locked models can only be added, updated, or deleted via the API.



 |
| Language | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The language of the influence model.



 |
| MasterLabel | 

Type

string

Properties

Filter, Group, Sort

Description

The label for the influence model.



 |
| ModelDescription | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The description of the influence model.



 |
| ModelType | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

Indicates whether the model is the Primary Campaign Source influence model, or a custom model. These values are the allowed.

- 1: Primary Campaign Source Model
- 2: Custom Model
- 3: First Touch Model
- 4: Last Touch Model
- 5: Even Distribution Model
- 6: Data-Driven Model





 |
| NamespacePrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The namespace prefix that is associated with this object. Each Developer Edition org that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix\_\_componentName notation.

The namespace prefix can have one of the following values.

- In Developer Edition orgs, NamespacePrefix is set to the namespace prefix of the org for all objects that support it, unless an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition org of the package developer.
- In orgs that are not Developer Edition orgs, NamespacePrefix is set only for objects that are part of an installed managed package. All other objects have no namespace prefix.





 |
| RecordPreference | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Restricted picklist, Sort

Description

The value of this field determines when to create campaign influence records.

- AllRecords: Creates records regardless of the revenue attribution percentage.
- RecordsWithAttribution: Creates records only when the revenue attribution is greater than 0%.





 |