[
  {
    "apiName": "EmailMessage",
    "description": "Salesforce standard EmailMessage (v66.0 dev-org gold master)",
    "fields": [
      {
        "apiName": "AutomationType",
        "label": "Automation Type",
        "options": [
          {
            "label": "AI-Assisted",
            "value": "AiAssisted"
          },
          {
            "label": "AI-Automated",
            "value": "AiAutomated"
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "BccAddress",
        "label": "BCC Address",
        "type": "string"
      },
      {
        "apiName": "CcAddress",
        "label": "CC Address",
        "type": "string"
      },
      {
        "apiName": "CreatedById",
        "createable": false,
        "label": "Created By",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "CreatedBy",
        "type": "reference",
        "updateable": false
      },
      {
        "apiName": "CreatedDate",
        "createable": false,
        "label": "Created Date",
        "type": "datetime",
        "updateable": false
      },
      {
        "apiName": "FirstOpenedDate",
        "label": "First Opened",
        "type": "datetime"
      },
      {
        "apiName": "FromAddress",
        "label": "From Address",
        "type": "string"
      },
      {
        "apiName": "FromName",
        "label": "From Name",
        "type": "string"
      },
      {
        "apiName": "HasAttachment",
        "label": "Has Attachment",
        "type": "string"
      },
      {
        "apiName": "Headers",
        "label": "Headers",
        "type": "string"
      },
      {
        "apiName": "HtmlBody",
        "label": "HTML Body",
        "type": "string"
      },
      {
        "apiName": "Id",
        "createable": false,
        "label": "ID",
        "required": true,
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "Incoming",
        "label": "Is Incoming",
        "type": "string"
      },
      {
        "apiName": "IsDeleted",
        "createable": false,
        "label": "Deleted",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "IsExternallyVisible",
        "label": "Is Externally Visible",
        "type": "string"
      },
      {
        "apiName": "IsPrivateDraft",
        "label": "Is Private Draft",
        "type": "string"
      },
      {
        "apiName": "LastModifiedById",
        "createable": false,
        "label": "Last Modified By",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "LastModifiedBy",
        "type": "reference",
        "updateable": false
      },
      {
        "apiName": "LastModifiedDate",
        "createable": false,
        "label": "Last Modified Date",
        "type": "datetime",
        "updateable": false
      },
      {
        "apiName": "LastOpenedDate",
        "label": "Last Opened",
        "type": "datetime"
      },
      {
        "apiName": "MessageDate",
        "label": "Message Date",
        "type": "datetime"
      },
      {
        "apiName": "MessageSize",
        "label": "Message Size",
        "type": "string"
      },
      {
        "apiName": "OwnerId",
        "label": "Owner",
        "referenceTo": [
          "User"
        ],
        "relationshipName": "Owner",
        "type": "reference"
      },
      {
        "apiName": "ParentId",
        "childRelationshipName": "EmailMessages",
        "label": "Case",
        "referenceTo": [
          "Case"
        ],
        "relationshipName": "Parent",
        "type": "reference"
      },
      {
        "apiName": "RelatedToId",
        "childRelationshipName": "Emails",
        "isPolymorphic": true,
        "label": "Related To",
        "referenceTo": [
          "Account",
          "AppointmentCategory",
          "AppointmentInvitation",
          "ApprovalSubmission",
          "ApprovalSubmissionDetail",
          "ApprovalWorkItem",
          "Asset",
          "AssetRelationship",
          "AssignedResource",
          "Campaign",
          "Case",
          "ChangeRequest",
          "CommSubscriptionConsent",
          "ContactRequest",
          "Contract",
          "ContractLineItem",
          "Coupon",
          "CreditMemo",
          "DataQueryWorkspace",
          "DeliveryEstimationSetup",
          "DevopsActivityLog",
          "DevopsEnvironment",
          "DevopsRequestInfo",
          "Entitlement",
          "FulfillmentOrder",
          "Image",
          "Incident",
          "Invoice",
          "LegalEntity",
          "ListEmail",
          "Location",
          "LocationShippingCarrierMethod",
          "OperatingHoursHoliday",
          "Opportunity",
          "Order",
          "Quote",
          "PartyConsent",
          "PrivacyRTBFRequest",
          "Problem",
          "ProcessException",
          "Product2",
          "ProductCatalog",
          "Promotion",
          "PromotionMarketSegment",
          "PromotionQualifier",
          "PromotionSegment",
          "PromotionSegmentBuyerGroup",
          "PromotionSegmentSalesStore",
          "PromotionTarget",
          "PromotionTier",
          "ResourceAbsence",
          "ReturnOrder",
          "ReturnOrderLineItem",
          "ServiceAppointment",
          "ServiceContract",
          "ServiceResource",
          "Shift",
          "Shipment",
          "ShipmentItem",
          "ShippingCarrier",
          "ShippingCarrierMethod",
          "Solution",
          "Waitlist",
          "WaitlistParticipant",
          "WorkOrder",
          "WorkOrderLineItem",
          "WorkPlan",
          "WorkPlanTemplate",
          "WorkPlanTemplateEntry",
          "WorkStep",
          "WorkStepTemplate"
        ],
        "relationshipName": "RelatedTo",
        "type": "reference"
      },
      {
        "apiName": "RelatedToId_type",
        "createable": false,
        "label": "Related To ID Type",
        "type": "string",
        "updateable": false
      },
      {
        "apiName": "Source",
        "label": "Email Source",
        "options": [
          {
            "label": "Einstein Activity Capture Limited",
            "value": "Einstein Activity Capture Limited"
          },
          {
            "label": "Einstein Activity Capture",
            "value": "Einstein Activity Capture"
          },
          {
            "label": "Email Integration App Manual",
            "value": "Email Integration App Manual"
          }
        ],
        "type": "picklist"
      },
      {
        "apiName": "Status",
        "label": "Status",
        "options": [
          {
            "label": "Draft",
            "value": "5"
          },
          {
            "label": "Forwarded",
            "value": "4"
          },
          {
            "label": "New",
            "value": "0"
          },
          {
            "label": "Read",
            "value": "1"
          },
          {
            "label": "Replied",
            "value": "2"
          },
          {
            "label": "Sent",
            "value": "3"
          }
        ],
        "required": true,
        "type": "picklist"
      },
      {
        "apiName": "Subject",
        "label": "Subject",
        "type": "string"
      },
      {
        "apiName": "SystemModstamp",
        "createable": false,
        "label": "System Modstamp",
        "type": "datetime",
        "updateable": false
      },
      {
        "apiName": "TextBody",
        "label": "Text Body",
        "type": "string"
      },
      {
        "apiName": "ToAddress",
        "label": "To Address",
        "type": "string"
      },
      {
        "apiName": "ValidatedFromAddress",
        "label": "From",
        "options": [
          {
            "label": "Xiaopeng Zhu <xiaopeng.zhu@pingcap.com>",
            "value": "xiaopeng.zhu@pingcap.com"
          }
        ],
        "type": "picklist"
      }
    ],
    "label": "Email Message",
    "pluralLabel": "Email Messages",
    "sharingModel": "Private",
    "tableType": "standard_object"
  }
]
