[
  {
    "apiName": "Opportunity",
    "keyPrefix": "006",
    "label": "Opportunity",
    "pluralLabel": "Opportunities",
    "tableType": "standard_object",
    "category": "crm",
    "description": "Salesforce standard Opportunity (v66.0 dev-org gold master)",
    "fields": [
      {
        "apiName": "AccountId",
        "label": "Account ID",
        "type": "reference",
        "referenceTo": [
          "Account"
        ],
        "relationshipName": "Account",
        "childRelationshipName": "Opportunities"
      },
      {
        "apiName": "IsPrivate",
        "label": "Private",
        "type": "boolean"
      },
      {
        "apiName": "Name",
        "label": "Name",
        "type": "string",
        "required": true,
        "isNameField": true
      },
      {
        "apiName": "Description",
        "label": "Description",
        "type": "textarea"
      },
      {
        "apiName": "StageName",
        "label": "Stage",
        "type": "picklist",
        "required": true,
        "options": [
          {
            "value": "Prospecting",
            "label": "Prospecting"
          },
          {
            "value": "Qualification",
            "label": "Qualification"
          },
          {
            "value": "Needs Analysis",
            "label": "Needs Analysis"
          },
          {
            "value": "Value Proposition",
            "label": "Value Proposition"
          },
          {
            "value": "Id. Decision Makers",
            "label": "Id. Decision Makers"
          },
          {
            "value": "Perception Analysis",
            "label": "Perception Analysis"
          },
          {
            "value": "Proposal/Price Quote",
            "label": "Proposal/Price Quote"
          },
          {
            "value": "Negotiation/Review",
            "label": "Negotiation/Review"
          },
          {
            "value": "Closed Won",
            "label": "Closed Won"
          },
          {
            "value": "Closed Lost",
            "label": "Closed Lost"
          }
        ]
      },
      {
        "apiName": "Amount",
        "label": "Amount",
        "type": "currency"
      },
      {
        "apiName": "Probability",
        "label": "Probability (%)",
        "type": "percent"
      },
      {
        "apiName": "ExpectedRevenue",
        "label": "Expected Amount",
        "type": "currency",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "TotalOpportunityQuantity",
        "label": "Quantity",
        "type": "double"
      },
      {
        "apiName": "CloseDate",
        "label": "Close Date",
        "type": "date",
        "required": true
      },
      {
        "apiName": "Type",
        "label": "Opportunity Type",
        "type": "picklist",
        "options": [
          {
            "value": "Existing Customer - Upgrade",
            "label": "Existing Customer - Upgrade"
          },
          {
            "value": "Existing Customer - Replacement",
            "label": "Existing Customer - Replacement"
          },
          {
            "value": "Existing Customer - Downgrade",
            "label": "Existing Customer - Downgrade"
          },
          {
            "value": "New Customer",
            "label": "New Customer"
          }
        ]
      },
      {
        "apiName": "NextStep",
        "label": "Next Step",
        "type": "string"
      },
      {
        "apiName": "LeadSource",
        "label": "Lead Source",
        "type": "picklist",
        "options": [
          {
            "value": "Web",
            "label": "Web"
          },
          {
            "value": "Phone Inquiry",
            "label": "Phone Inquiry"
          },
          {
            "value": "Partner Referral",
            "label": "Partner Referral"
          },
          {
            "value": "Purchased List",
            "label": "Purchased List"
          },
          {
            "value": "Other",
            "label": "Other"
          }
        ]
      },
      {
        "apiName": "IsClosed",
        "label": "Closed",
        "type": "boolean",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "IsWon",
        "label": "Won",
        "type": "boolean",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "ForecastCategory",
        "label": "Forecast Category",
        "type": "picklist",
        "required": true,
        "createable": false,
        "updateable": false,
        "options": [
          {
            "value": "Omitted",
            "label": "Omitted"
          },
          {
            "value": "Pipeline",
            "label": "Pipeline"
          },
          {
            "value": "BestCase",
            "label": "Best Case"
          },
          {
            "value": "MostLikely",
            "label": "Most Likely"
          },
          {
            "value": "Forecast",
            "label": "Commit"
          },
          {
            "value": "Closed",
            "label": "Closed"
          }
        ]
      },
      {
        "apiName": "ForecastCategoryName",
        "label": "Forecast Category",
        "type": "picklist",
        "options": [
          {
            "value": "Omitted",
            "label": "Omitted"
          },
          {
            "value": "Pipeline",
            "label": "Pipeline"
          },
          {
            "value": "Best Case",
            "label": "Best Case"
          },
          {
            "value": "Commit",
            "label": "Commit"
          },
          {
            "value": "Closed",
            "label": "Closed"
          }
        ]
      },
      {
        "apiName": "CampaignId",
        "label": "Campaign ID",
        "type": "reference",
        "referenceTo": [
          "Campaign"
        ],
        "relationshipName": "Campaign",
        "childRelationshipName": "Opportunities"
      },
      {
        "apiName": "HasOpportunityLineItem",
        "label": "Has Line Item",
        "type": "boolean",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Pricebook2Id",
        "label": "Price Book ID",
        "type": "reference",
        "referenceTo": [
          "Pricebook2"
        ],
        "relationshipName": "Pricebook2",
        "childRelationshipName": "Opportunities"
      },
      {
        "apiName": "LastActivityDate",
        "label": "Last Activity",
        "type": "date",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "PushCount",
        "label": "Push Count",
        "type": "double",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "LastStageChangeDate",
        "label": "Last Stage Change Date",
        "type": "datetime",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "FiscalQuarter",
        "label": "Fiscal Quarter",
        "type": "double",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "FiscalYear",
        "label": "Fiscal Year",
        "type": "double",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "Fiscal",
        "label": "Fiscal Period",
        "type": "string",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "ContactId",
        "label": "Contact ID",
        "type": "reference",
        "updateable": false,
        "referenceTo": [
          "Contact"
        ],
        "childRelationshipName": "Opportunities"
      },
      {
        "apiName": "HasOpenActivity",
        "label": "Has Open Activity",
        "type": "boolean",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "HasOverdueTask",
        "label": "Has Overdue Task",
        "type": "boolean",
        "createable": false,
        "updateable": false
      },
      {
        "apiName": "LastAmountChangedHistoryId",
        "label": "Opportunity History ID",
        "type": "reference",
        "createable": false,
        "updateable": false,
        "referenceTo": [
          "OpportunityHistory"
        ],
        "relationshipName": "LastAmountChangedHistory"
      },
      {
        "apiName": "LastCloseDateChangedHistoryId",
        "label": "Opportunity History ID",
        "type": "reference",
        "createable": false,
        "updateable": false,
        "referenceTo": [
          "OpportunityHistory"
        ],
        "relationshipName": "LastCloseDateChangedHistory"
      }
    ]
  }
]
