ServiceNow · JSON Structure

Servicenow Aggregate Aggregate Result Structure

The aggregate statistics result. Structure varies based on the requested aggregate types and group-by fields.

Type: object Properties: 2
AutomationCloud ServicesDigital WorkflowsEnterprise PlatformIT Service ManagementITSMProcessesT1Workflow AutomationWorkflows

AggregateResult is a JSON Structure definition published by ServiceNow, describing 2 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

stats group_by

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

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "The aggregate statistics result. Structure varies based on the requested aggregate types and group-by fields.",
  "name": "AggregateResult",
  "properties": {
    "stats": {
      "type": "object",
      "description": "Contains the computed aggregate values organized by field name and aggregate type.",
      "properties": {
        "count": {
          "type": "string",
          "description": "The total count of records matching the query."
        }
      }
    },
    "group_by": {
      "type": "array",
      "description": "When group-by fields are specified, contains an entry for each unique group with its aggregate values.",
      "items": {
        "type": "object"
      }
    }
  },
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}