Alert When an Order Shipment is Complete - Workflow Event Handler

Use this event handler to automatically notify mobile users when an order is shipped to a customer. To receive this alert, users must be subscribed to the CustomerShipmentAlert publication. The notification will be an external email and a message sent to the SyteLine Inbox form.

This is the text of the notification that is sent:


To: sluser
Subject: Customer Shipment Alert
Body: Order CoNum for customer CustNamehas been shipped.

Variable Information

Variable Description
sluser The mobile user who subscribes to this alert. The user's primary email address (from the Users form) is used.
CoNum The number of the customer order that was shipped.
CustName The name of the customer whose order was shipped.

Associated Event and IDO

The event IdoOnItemUpdate for the SLCoitems IDO triggers this notification. The event fires when Status changes to Filled for at least one line on the order. The logic should then go and check if all other customer order lines are filled, and if at least one line has qty_shipped >0. If the check returns true, the message is sent.