Salesforce Campaign

Represents a marketing campaign, such as a direct mail promotion, webinar, or trade show. Campaigns organize marketing efforts and track their effectiveness by associating leads, contacts, and opportunities.

CloudCRMCustomer ManagementEnterpriseSales

Properties

Name Type Description
Id string Unique 18-character Salesforce record identifier
IsDeleted boolean Indicates whether the record has been moved to the Recycle Bin
Name string Name of the campaign
ParentId stringnull ID of the parent campaign for campaign hierarchy
Type stringnull Type of campaign
Status stringnull Status of the campaign
StartDate stringnull Starting date for the campaign
EndDate stringnull Ending date for the campaign
ExpectedRevenue numbernull Amount of revenue expected from the campaign
BudgetedCost numbernull Amount budgeted for the campaign
ActualCost numbernull Actual amount spent on the campaign
ExpectedResponse numbernull Percentage of expected response for the campaign
NumberSent numbernull Number of individuals targeted by the campaign
IsActive boolean Indicates whether the campaign is active
Description stringnull Text description of the campaign
NumberOfLeads integer Number of leads associated with the campaign
NumberOfConvertedLeads integer Number of leads converted to contacts from the campaign
NumberOfContacts integer Number of contacts associated with the campaign
NumberOfResponses integer Number of campaign members that have responded
NumberOfWonOpportunities integer Number of won opportunities associated with the campaign
NumberOfOpportunities integer Number of opportunities associated with the campaign
AmountAllOpportunities numbernull Total amount of all opportunities associated with the campaign
AmountWonOpportunities numbernull Total amount of won opportunities
OwnerId string ID of the user who owns the campaign
CreatedDate string
CreatedById string
LastModifiedDate string
LastModifiedById string
SystemModstamp string
LastActivityDate stringnull
CampaignMemberRecordTypeId stringnull The record type for campaign members
attributes object
View JSON Schema on GitHub

JSON Schema

salesforce-sales-cloud-campaign-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://developer.salesforce.com/schemas/sales-cloud/campaign.json",
  "title": "Salesforce Campaign",
  "description": "Represents a marketing campaign, such as a direct mail promotion, webinar, or trade show. Campaigns organize marketing efforts and track their effectiveness by associating leads, contacts, and opportunities.",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "Unique 18-character Salesforce record identifier",
      "pattern": "^[a-zA-Z0-9]{18}$",
      "readOnly": true
    },
    "IsDeleted": {
      "type": "boolean",
      "description": "Indicates whether the record has been moved to the Recycle Bin",
      "readOnly": true
    },
    "Name": {
      "type": "string",
      "description": "Name of the campaign",
      "maxLength": 80
    },
    "ParentId": {
      "type": ["string", "null"],
      "description": "ID of the parent campaign for campaign hierarchy"
    },
    "Type": {
      "type": ["string", "null"],
      "description": "Type of campaign",
      "enum": [null, "Conference", "Webinar", "Trade Show", "Public Relations", "Partners", "Referral Program", "Advertisement", "Banner Ads", "Direct Mail", "Email", "Telemarketing", "Other"]
    },
    "Status": {
      "type": ["string", "null"],
      "description": "Status of the campaign",
      "enum": [null, "Planned", "In Progress", "Completed", "Aborted"]
    },
    "StartDate": {
      "type": ["string", "null"],
      "format": "date",
      "description": "Starting date for the campaign"
    },
    "EndDate": {
      "type": ["string", "null"],
      "format": "date",
      "description": "Ending date for the campaign"
    },
    "ExpectedRevenue": {
      "type": ["number", "null"],
      "description": "Amount of revenue expected from the campaign"
    },
    "BudgetedCost": {
      "type": ["number", "null"],
      "description": "Amount budgeted for the campaign"
    },
    "ActualCost": {
      "type": ["number", "null"],
      "description": "Actual amount spent on the campaign"
    },
    "ExpectedResponse": {
      "type": ["number", "null"],
      "description": "Percentage of expected response for the campaign",
      "minimum": 0,
      "maximum": 100
    },
    "NumberSent": {
      "type": ["number", "null"],
      "description": "Number of individuals targeted by the campaign"
    },
    "IsActive": {
      "type": "boolean",
      "description": "Indicates whether the campaign is active",
      "default": false
    },
    "Description": {
      "type": ["string", "null"],
      "description": "Text description of the campaign"
    },
    "NumberOfLeads": {
      "type": "integer",
      "description": "Number of leads associated with the campaign",
      "readOnly": true
    },
    "NumberOfConvertedLeads": {
      "type": "integer",
      "description": "Number of leads converted to contacts from the campaign",
      "readOnly": true
    },
    "NumberOfContacts": {
      "type": "integer",
      "description": "Number of contacts associated with the campaign",
      "readOnly": true
    },
    "NumberOfResponses": {
      "type": "integer",
      "description": "Number of campaign members that have responded",
      "readOnly": true
    },
    "NumberOfWonOpportunities": {
      "type": "integer",
      "description": "Number of won opportunities associated with the campaign",
      "readOnly": true
    },
    "NumberOfOpportunities": {
      "type": "integer",
      "description": "Number of opportunities associated with the campaign",
      "readOnly": true
    },
    "AmountAllOpportunities": {
      "type": ["number", "null"],
      "description": "Total amount of all opportunities associated with the campaign",
      "readOnly": true
    },
    "AmountWonOpportunities": {
      "type": ["number", "null"],
      "description": "Total amount of won opportunities",
      "readOnly": true
    },
    "OwnerId": {
      "type": "string",
      "description": "ID of the user who owns the campaign"
    },
    "CreatedDate": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "CreatedById": {
      "type": "string",
      "readOnly": true
    },
    "LastModifiedDate": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "LastModifiedById": {
      "type": "string",
      "readOnly": true
    },
    "SystemModstamp": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "LastActivityDate": {
      "type": ["string", "null"],
      "format": "date",
      "readOnly": true
    },
    "CampaignMemberRecordTypeId": {
      "type": ["string", "null"],
      "description": "The record type for campaign members"
    },
    "attributes": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "const": "Campaign"
        },
        "url": {
          "type": "string"
        }
      }
    }
  },
  "required": ["Name"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/salesforce-sales-cloud-campaign"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.