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

Field
Type
Description

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 path

  • DataHasKey - Check if key exists

  • DataIn - Value is in list

  • DataContains - String contains substring

See Advanced JSON Field Queries for detailed examples.

Best Practices

  1. Define a schema for your custom data

  2. Document expected fields

  3. Validate data structure on write

  4. Use consistent naming conventions

  5. Consider performance for deep queries

See Also

Last updated

Was this helpful?