Scripting APIs
JavaScript scripts can use selected ERP.net APIs without importing a package. Which context values are available depends on the feature that runs the script; see Execution context.
- Domain Model provides entity repositories for lookup, queries, and changes.
- Action provides logging, cancellation, user/session information, HTTP operations, and file access. Individual helpers have context requirements; see its API reference.
- Files SDK works with ERP.net folders and attached files in a Domain transaction. It also provides native XLSX and PDF processing.
The Shared patterns page demonstrates reusable operations without assuming that subject or args exists in every script.