Notifiable
Interface for entities that can send notifications
Audience: Programmer
The Notifiable interface is implemented by entities that can trigger notifications through various channels like email, SMS, webhooks, or in-app messages.
Fields
notificationSettings
NotificationSettings
Configuration for notifications
notificationHistory
NotificationConnection
Past notifications
canNotify
Boolean!
Whether notifications are enabled
Notification Channels
Email - SMTP email notifications
SMS - Text message alerts
Webhook - HTTP callbacks
In-App - Application notifications
Push - Mobile push notifications
Implementing Types
PickingOrder (order ready, shipped)
ReceivingInbound (arrival notice, completed)
InventoryItem (low stock, expiry)
Customer (order updates)
Supplier (PO sent, delivery request)
Usage
Notification Events
Common trigger events:
Status changes
Threshold breaches
Workflow completions
Error conditions
Scheduled reminders
Templates
Notifications use templates with:
Variable substitution
Multi-language support
HTML/Text formats
Custom branding
Dynamic content
Best Practices
Implement notification preferences
Batch notifications when possible
Track delivery status
Handle bounces and failures
Respect opt-out preferences
Rate limit notifications
See Also
Customer Type - Customer notifications
Workflow Interface - Workflow-triggered notifications
Last updated
Was this helpful?
