Global Class Statics

The Global class's ~375 static methods, and which of them a bare unqualified call resolves to. Distinguishes the 34 that are ALSO compiler predefined functions from the 341 that require Global::. Invoke when a bare call to a Global helper does not compile, when deciding between Global::x() and x(), or when adding a helper to Global.

49 stars 26 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add dynamics365ninja/d365fo-cli --skill global-class-statics
Manual install
git clone --depth 1 https://github.com/dynamics365ninja/d365fo-cli.git /tmp/d365fo-cli
mkdir -p ~/.claude/skills
cp -r /tmp/d365fo-cli/skills/anthropic/global-class-statics ~/.claude/skills/global-class-statics

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

> ⛔ **NEVER write X++ AOT XML files directly** via PowerShell, terminal file commands (`Set-Content`, `Out-File`, `New-Item`), editor write tools, or any raw text approach. The XML schema is proprietary. **ALWAYS use `d365fo generate …` commands** to produce correct AOT XML. If `d365fo` is unavailable in PATH, stop and ask the user to install it.

# Global class statics

`Global` is an ordinary `AxClass` — `d365fo get class Global` finds it, unlike
the kernel types in [system-objects](../system-objects/SKILL.md). Measured on a real
installation it declares **375 static methods**.

## The distinction that decides how you call it

There are two ways a name with no receiver can resolve in X++: as a **compiler
predefined function**, or not at all. `Global` statics are not automatically
predefined. Of its 375 methods:

| | count | how to call it |
|---|---:|---|
| also a predefined function | **34** | bare `name(…)` works, and `Global::name(…)` also compiles |
| Global only | **341** | `Global::name(…)` — a bare call does not compile |

The 34 overlapping ones are the infolog and date helpers everyone writes
unqualified: `checkFailed`, `error`, `warning`, `info`, `classId2Name`,
`className2Id`, `con2Str`, `dateStartMth`, `dateEndMth`, `dateStartWk`,
`dateEndWk`, `dateStartQtr`, `dateEndQtr`, `dateEndYr`, `dateMax`, `dateNull`,
`dateMthFwd`, and their neighbours.

The other 341 — `aosClientMode`, `appl`, `base64str2con`,
Read the full skill on GitHub

Details

Skill name
global-class-statics
Path
skills/anthropic/global-class-statics/SKILL.md
Repo updated
16 November 2026

FAQ

What does the Global Class Statics skill do?

The Global class's ~375 static methods, and which of them a bare unqualified call resolves to. Distinguishes the 34 that are ALSO compiler predefined functions from the 341 that require Global::. Invoke when a bare call to a Global helper does not compile, when deciding between Global::x() and x(), or when adding a helper to Global.

How do I install the Global Class Statics skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add dynamics365ninja/d365fo-cli --skill global-class-statics. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Global Class Statics popular?

It lives in dynamics365ninja/d365fo-cli, which has 49 GitHub stars and 26 forks.

Related skills

Analytics and Er

49

dynamics365ninja/d365fo-cli

Model the D365FO analytical and document-generation surfaces — aggregate measurements and the entity store, tiles/cues and KPIs, and Electronic Reporting (ER). Invoke when the user asks about a workspace tile, a KPI, an aggregate measurement, the entity store, Power BI content, or running/binding an ER format.

Data & Analytics26

Barcode Scanning

49

dynamics365ninja/d365fo-cli

Barcodes and scanner input in D365FO — printing vs scanning are unrelated code paths, GS1-128 application identifiers, item-barcode resolution, and where the platform parses a scan for you. Invoke when the user mentions barcodes, GS1, GTIN, SSCC, scanning, scanners, item barcodes, or barcode setup.

AI, LLMs & Agents26

Build Error Triage

49

dynamics365ninja/d365fo-cli

Turn a D365FO compiler, best-practice, or runtime error into the specific fix it calls for. Invoke when the user pastes a build log, an xppc message, a BP violation, or an infolog stack trace and asks what it means or how to fix it.

AI, LLMs & Agents26

Integration Dmf Dualwrite

49

dynamics365ninja/d365fo-cli

Move data in and out of D365 Finance & Operations in bulk or in sync — the Data Management Framework (DMF/DIXF), dual-write to Dataverse, virtual entities, and the Power Platform surface. Invoke when the user asks about data import/export, staging tables, recurring integrations, data packages, dual-write, Dataverse sync, virtual entities, or Power Automate.

AI, LLMs & Agents26

Forms and Navigation

49

dynamics365ninja/d365fo-cli

Extend a D365FO form at the right lifecycle point, and wire objects into the navigation menus. Invoke when the user asks where to put form logic (init, executeQuery, active, validateWrite, clicked, modified), how to refresh a grid, how to read caller context, or how to add a menu item or a nested submenu.

AI, LLMs & Agents26

Integration Patterns

49

dynamics365ninja/d365fo-cli

Guidance for building or debugging integrations between D365 Finance & Operations and external systems. Invoke when the user asks about OData, custom services, DMF/Data Management Framework, business events, Power Automate connectors, Service Bus, or external system connectivity.

AI, LLMs & Agents26

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.