Salesforce · JSON Structure

Salesforce S Object Tree Request Structure

Type: object Properties: 1 Required: 1
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

SObjectTreeRequest is a JSON Structure definition published by Salesforce, describing 1 property, of which 1 is required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

records

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

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "SObjectTreeRequest",
  "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"
          },
          "Contacts": {
            "type": "object",
            "properties": {
              "records": {
                "type": "array",
                "description": "",
                "items": {
                  "type": "object",
                  "properties": {
                    "attributes": {
                      "type": "object"
                    },
                    "lastname": {
                      "type": "object"
                    },
                    "Title": {
                      "type": "object"
                    },
                    "email": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "attributes",
                    "lastname",
                    "email"
                  ]
                }
              }
            },
            "required": [
              "records"
            ]
          },
          "childAccounts": {
            "type": "object",
            "properties": {
              "records": {
                "type": "array",
                "description": "",
                "items": {
                  "type": "object",
                  "properties": {
                    "attributes": {
                      "type": "object"
                    },
                    "name": {
                      "type": "object"
                    },
                    "phone": {
                      "type": "object"
                    },
                    "website": {
                      "type": "object"
                    },
                    "numberOfEmployees": {
                      "type": "object"
                    },
                    "industry": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "attributes",
                    "name",
                    "phone",
                    "website",
                    "numberOfEmployees",
                    "industry"
                  ]
                }
              }
            },
            "required": [
              "records"
            ]
          }
        },
        "required": [
          "attributes",
          "name",
          "phone",
          "website",
          "numberOfEmployees",
          "industry",
          "Contacts"
        ]
      }
    }
  },
  "required": [
    "records"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}