Skip to the content.

sage-x3-l4g — reference index

Claude skill for writing, reviewing, and debugging Sage X3 V12 L4G (4GL / X3 script / Adonix) code — classes, representations, REST, workflows, reports, batch, security, audit, and more.

This site renders the same Markdown that ships in the skill. Use it to browse the references without cloning. For installation and overview, see the README (or README en français). For contribution guidelines and style, see CONTRIBUTING.

Skill entry pointSKILL.md: mental model, V12 vs Classic idioms, canonical transactional subprogram, when to use the skill, how to respond to L4G requests.


Core language and conventions

UI — Classic and V12

Integration and operations

Meta

Examples

Compilable L4G fixtures — see the examples index.

File Topic
YCUSTLOG.src V12 class wrapping a custom table with UPDTICK
YSRV_RESERVE.src REST service class: stock reservation, transactional
YCTRL_FIELD.trt Field-control actions: format checks, Luhn SIREN
YIMP_HOOK.src Import template hooks: per-line validation + end-of-run logging
YBATCH_ORPHANS.trt Scheduled batch: email report of orphan orders
YBATCH_DAILY.trt Recurrent batch: drains an inbox, per-row tx, dry-run, pacing
YPERSO_GESBPC.src Personalisation hook gated by activity code, with audit trail
YMSG_MULTILANG.src Multi-language email helper, currency-aware amount, locale-aware date

Tests


Other resources