Entities
Introduction
Entities in CXTMS define the core data structures used throughout the system. They represent key business objects like orders, contacts, and accounting transactions. App Modules can define new custom entity types or extend existing ones to add additional fields and functionality.
When to Define Custom Entities
- You need to store and manage data that doesn't fit into existing entity types
- You want to add custom fields to extend existing entities like Orders or Contacts
- You're building a new module that requires its own data model
Key Concepts
Entity Definition
An entity definition includes:
name- Unique identifier for the entityentityKind- The type of entity (e.g. Order, Contact, Custom)displayName- Localized labels for the UIfields- The data fields that make up the entity