Domain Model
Scripts in ERP.net can directly interact with the ERP.net Domain Model, providing access to all entities and their attributes.
This allows you to read, create, update, and delete data as part of your custom logic.
Through the scripting interface, you work with the same Domain Model objects used throughout ERP.net, making it possible to automate operations, enforce complex rules, or integrate data from different parts of your instance.
With direct ERP.net Domain Model access, scripts can:
Retrieve existing records and entity collections.
Create and initialize new entities.
Update attributes of entities.
Delete entities when necessary.
--
For a step-by-step guide on how to retrieve, create, update, and delete entities in your scripts, see the Entity operations section.
It covers the most common tasks and patterns you'll need when working with the Domain Model.
--
For more complex Domain Model scripting scenarios, custom entity workflows, and advanced tips, visit the Advanced examples section.
There you'll find practical solutions and best practices for handling sophisticated data operations and integrating business logic with the Domain Model.