WithCustomData
Interface for entities with custom JSON data fields
Audience: Programmer
The WithCustomData interface is implemented by entities that support storing custom attributes in a JSON data field. This enables flexible schema extension without database migrations.
Fields
data
Map
Custom attributes stored as JSON
Implementing Types
InventoryItem
Customer
Supplier
PickingOrder
PickingOrderItem
ReceivingInbound
ReceivingInboundItem
Repository
RepositoryMovement
InventoryCollection
InventoryItemSet
Transaction
Workflow
WorkflowSignal
Usage
Querying Data Fields
Use these filters to query JSON data:
Data- Match exact value at pathDataHasKey- Check if key existsDataIn- Value is in listDataContains- String contains substring
See Advanced JSON Field Queries for detailed examples.
Best Practices
Define a schema for your custom data
Document expected fields
Validate data structure on write
Use consistent naming conventions
Consider performance for deep queries
See Also
Map Scalar - The Map type used for data
Advanced JSON Queries - Query techniques
Last updated
Was this helpful?
