# Globals

(globals)

## Overview

The `globals` object represents the original global scope in Servoy, used to store global variables, methods, and relations. Historically, it was the only global scope available before the introduction of multiple global scopes via `scopes.myScopeName`. Although still functional, its usage has been largely superseded by the more flexible and modular `scopes` mechanism.

## Key Features

* Provides access to all global variables (`allvariables`), methods (`allmethods`), and relations (`allrelations`) defined in the solution. These are now deprecated in favor of more specific solution model methods like `solutionModel.getGlobalVariables(scopeName)`.
* Includes support for the `currentcontroller`, which references the controller of the top-level form in the active dialog.

The `globals` object remains part of the runtime for legacy support but encourages migration to the `scopes` API for modern solutions.

## Properties Summarized

| Type | Name | Summary |
| ---- | ---- | ------- |

## Properties Detailed

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servoy.com/reference/servoycore/dev-api/globals.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
