CampaignInfluenceModel

Represents a campaign influence model used by Customizable Campaign Influence. You can’t configure Customizable Campaign Influence via the Metadata API, but you can add a campaign influence model.

This information applies only to Customizable Campaign Influence and not to Campaign Influence 1.0 .

This type extends Metadata and inherits its fields.

CampaignInfluenceModel values are stored in the campaignInfluenceModels directory of the corresponding package directory. The file name matches the model name, and the extension is .campaignInfluenceModel.

Introduced in API version 38.0.

  • Type: boolean
  • Required: No
  • 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. This field is available beginning with API version 40.0.
  • Type: boolean

  • Required: Yes

  • Description: Required. Indicates if the model is the default model or not. Only campaign influence records associated with the default model appear on campaigns and opportunities. You can only have one default model at a time. A model must be active to become the default model.

    Activating or deactivating custom models does not automatically generate or delete campaign influence records.

  • Type: boolean
  • Required: Yes
  • Description: Required. Indicates if the model is locked or not. Campaign Influence records for locked models can be manipulated only via the API.
  • Type: string
  • Required: No
  • Description: A description of the influence model.
  • Type: string
  • Required: Yes
  • Description: Required. A unique name for the model.
  • Type: string (enumeration of type string)
  • Required: No
  • Introduced: API version 41.0
  • Description: The value of this field determines when to create campaign influence records.
  • Possible values:
    • AllRecords — Creates records regardless of the revenue attribution percentage.
    • RecordsWithAttribution — Creates records only when the revenue attribution is greater than 0%.

The following is an example of a CampaignInfluenceModel component that represents the default Salesforce campaign influence attribution model. The default isDefaultModel value of true can be changed if another model is created and set as the default model. The isModelLocked value of true means that Campaign Influence records for this model can be seen in the UI, but not created, updated, or deleted.

The following is an example of a CampaignInfluenceModel component that creates an influence model called Last Touch, which will not be the default model.

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.