Salesforce · Schema

QueryResult

SOQL query result envelope

CRMCloudSalesMarketingAutomationAIFortune 500

Properties

Name Type Description
totalSize integer Total number of records matching the query
done boolean Whether all results have been returned
nextRecordsUrl string URL to retrieve the next page when done is false
records array
View JSON Schema on GitHub

JSON Schema

salesforcecom-queryresult-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/QueryResult",
  "title": "QueryResult",
  "type": "object",
  "description": "SOQL query result envelope",
  "properties": {
    "totalSize": {
      "type": "integer",
      "description": "Total number of records matching the query"
    },
    "done": {
      "type": "boolean",
      "description": "Whether all results have been returned"
    },
    "nextRecordsUrl": {
      "type": "string",
      "description": "URL to retrieve the next page when done is false"
    },
    "records": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/sObject"
      }
    }
  },
  "required": [
    "totalSize",
    "done",
    "records"
  ]
}