Alert on Past Due Open CO Lines - Workflow Event Handler

When an order ships late, and a mobile user has subscribed to late order shipping alerts for a particular customer, this event handler sends a notification of the shipment to that user.

When the event handler is activated, a new event trigger for the alert is created to control the scheduling of e-mail notifications for this alert. By default, order shipping alert notifications are sent when the handler is activated and every 24 hours thereafter. (You can change the defaults associated with the scheduling of the event on the Event Triggers form, by resetting the condition, condition retest interval and trigger reset interval values on the form.

After the event handler is activated and the OrderShippingAlert event trigger has been created, the system uses a TrackRows table to keep a list of shipments that need to have notifications sent (based on whether there are any subscribers to the Late Order Shipping Alert), and updates the list each time a late order is shipped.

The event trigger runs the stored procedure LateOrderShippingAlertsSp at the specified time each day. It performs the following tasks:

The stored procedure DeleteCoShipTrackRowsSp clears the TrackRows table after the order shipping e-mail notification is successfully sent.

Technical Details

Associated Event and Stored Procedures

The event LateOrderShippingAlert has 3 actions:

Event Trigger

The following default values are used for scheduling the LateOrderShippingAlert event trigger:

 


Related Topics

About Workflow Event Handlers

Setting Up and Activating Workflow Event Handlers

Modifying Workflow Event Handlers