Salesforce · JSON Structure

Salesforce Record2 Structure

Type: object Properties: 8 Required: 7
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

Record2 is a JSON Structure definition published by Salesforce, describing 8 properties, of which 7 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

attributes name phone website numberOfEmployees industry Contacts childAccounts

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "Record2",
  "properties": {
    "attributes": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "referenceId": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "referenceId"
      ]
    },
    "name": {
      "type": "string"
    },
    "phone": {
      "type": "string"
    },
    "website": {
      "type": "string"
    },
    "numberOfEmployees": {
      "type": "string"
    },
    "industry": {
      "type": "string"
    },
    "Contacts": {
      "type": "object",
      "properties": {
        "records": {
          "type": "array",
          "description": "",
          "items": {
            "type": "object",
            "properties": {
              "attributes": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "referenceId": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "referenceId"
                ]
              },
              "lastname": {
                "type": "string"
              },
              "Title": {
                "type": "string"
              },
              "email": {
                "type": "string"
              }
            },
            "required": [
              "attributes",
              "lastname",
              "email"
            ]
          }
        }
      },
      "required": [
        "records"
      ]
    },
    "childAccounts": {
      "type": "object",
      "properties": {
        "records": {
          "type": "array",
          "description": "",
          "items": {
            "type": "object",
            "properties": {
              "attributes": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "referenceId": {
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "referenceId"
                ]
              },
              "name": {
                "type": "string"
              },
              "phone": {
                "type": "string"
              },
              "website": {
                "type": "string"
              },
              "numberOfEmployees": {
                "type": "string"
              },
              "industry": {
                "type": "string"
              }
            },
            "required": [
              "attributes",
              "name",
              "phone",
              "website",
              "numberOfEmployees",
              "industry"
            ]
          }
        }
      },
      "required": [
        "records"
      ]
    }
  },
  "required": [
    "attributes",
    "name",
    "phone",
    "website",
    "numberOfEmployees",
    "industry",
    "Contacts"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}