{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/salesforce-sales-cloud/json-schema/salesforce-sales-cloud-report-results-schema.json",
  "title": "ReportResults",
  "description": "Results from running a report",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/salesforce-sales-cloud-report-instances-api-openapi.yml#/components/schemas/ReportResults",
  "type": "object",
  "properties": {
    "allData": {
      "type": "boolean"
    },
    "factMap": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "aggregates": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                },
                "value": {
                  "nullable": true
                }
              }
            }
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "dataCells": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string"
                      },
                      "value": {
                        "nullable": true
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "groupingsAcross": {
      "type": "object"
    },
    "groupingsDown": {
      "type": "object"
    },
    "hasDetailRows": {
      "type": "boolean"
    },
    "reportExtendedMetadata": {
      "type": "object"
    },
    "reportMetadata": {
      "$ref": "#/$defs/ReportMetadata"
    }
  },
  "$defs": {
    "ReportFilter": {
      "type": "object",
      "description": "A filter applied to a report",
      "properties": {
        "column": {
          "type": "string"
        },
        "filterType": {
          "type": "string"
        },
        "isRunPageEditable": {
          "type": "boolean"
        },
        "operator": {
          "type": "string",
          "enum": [
            "equals",
            "notEqual",
            "lessThan",
            "greaterThan",
            "lessOrEqual",
            "greaterOrEqual",
            "contains",
            "notContain",
            "startsWith",
            "includes",
            "excludes"
          ]
        },
        "value": {
          "type": "string"
        }
      }
    },
    "ReportMetadata": {
      "type": "object",
      "description": "Metadata describing a report configuration",
      "properties": {
        "aggregates": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "chart": {
          "type": [
            "object",
            "null"
          ]
        },
        "crossFilters": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "detailColumns": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "developerName": {
          "type": "string"
        },
        "division": {
          "type": [
            "string",
            "null"
          ]
        },
        "folderId": {
          "type": "string"
        },
        "groupingsAcross": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "dateGranularity": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "sortAggregate": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sortOrder": {
                "type": "string"
              }
            }
          }
        },
        "groupingsDown": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "dateGranularity": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "sortAggregate": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sortOrder": {
                "type": "string"
              }
            }
          }
        },
        "hasDetailRows": {
          "type": "boolean"
        },
        "hasRecordCount": {
          "type": "boolean"
        },
        "historicalSnapshotDates": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "reportBooleanFilter": {
          "type": [
            "string",
            "null"
          ]
        },
        "reportFilters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReportFilter"
          }
        },
        "reportFormat": {
          "type": "string",
          "enum": [
            "TABULAR",
            "SUMMARY",
            "MATRIX",
            "MULTI_BLOCK"
          ]
        },
        "reportType": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string"
            },
            "type": {
              "type": "string"
            }
          }
        },
        "scope": {
          "type": "string"
        },
        "sortBy": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "standardDateFilter": {
          "type": "object",
          "properties": {
            "column": {
              "type": "string"
            },
            "durationValue": {
              "type": "string"
            },
            "endDate": {
              "type": [
                "string",
                "null"
              ]
            },
            "startDate": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        }
      }
    }
  }
}