Notification

Send email and SMS notifications to customers based on order status.

Overview

The Notification step sends email and/or SMS notifications to customers based on configured notification templates. This is the primary mechanism for customer communication during order processing.

Identifier

PropertyValue
KeyNotification
GroupNotifications
Applicable StatusesNew, InProgress, Completed, ReadyForPickup, OrderCanceled

Configuration Properties

This step uses notification templates configured in the system. The templates determine:

  • Which notifications to send based on order status
  • Email and/or SMS content
  • Recipient selection

Behavior

What It Does

  1. Skips execution in test mode
  2. Clears any pending notification IDs on the order
  3. Processes notification templates:
    • Determines applicable notification templates based on order status
    • Generates email and/or SMS messages
    • Enqueues messages for delivery
  4. Returns result:
    • Success if any messages sent
    • Success if no messages sent but pending notifications were added
    • Warning if no messages sent and no pending notifications added

Prerequisites

  • Notification templates must be configured
  • Customer must have email/phone for respective notification types

Side Effects

  • Clears PendingNotificationIds on order
  • Email and/or SMS messages enqueued for delivery
  • No direct order modifications

Send After

When a notification template has a Send After value configured, the notification is stored as pending on the order and fired later by the notification scheduler instead of being sent immediately.

Every time this step runs it clears all pending notifications on the order before re-evaluating, so a status change that triggers the step will cancel any previously scheduled notifications.

Send After Types

TypeDefault behaviourWith Adjust for Store Opening Hours
HN hours from nowCounted within store opening hours; carries to next open day if it falls outside
MN minutes from nowCounted within store opening hours; carries to next open day if it falls outside
DN calendar days from nowN working days from now, scheduled at the store's opening time on the target day

Adjust for Store Opening Hours is only available on the Generic Order Notification type and requires the order to have a store with opening hours configured.

Required: Pending notifications are not sent by this workflow step — they are picked up and delivered by the Process Notifications scheduled task. This task must be configured and running for any Send After notification to be delivered.


Business Cases

When to Use

  • Order confirmation: Send confirmation after order placement
  • Shipping notification: Notify customer when order ships
  • Ready for pickup: Alert customer for Click & Collect orders
  • Cancellation notice: Inform customer of order cancellation

Example Scenarios

Scenario 1: Email and SMS Sent Order status triggers notification. Both email and SMS templates match. Both messages enqueued. Returns success with "2 emails and 1 SMS sent".

Scenario 2: No Matching Templates Order status has no configured notification templates. Returns warning with "No messages sent".

Scenario 3: Email Only Customer has email but no phone number. Only email notification sent.

Scenario 4: Test Mode Running in test mode. Notifications skipped, success returned.

Error Handling

ConditionResultContinues Workflow?
Test modeSuccess (skipped)Yes
Messages sentSuccessYes
No messages sent, pending notifications addedSuccessYes
No messages sent, no pending notificationsWarningYes
Exception during sendWarningYes

On this page