Alert on Order Shipping - Workflow Event Handler

When an order ships to a company, and a portal user belonging to that company has subscribed to order shipping alerts, 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 out daily at 3 p.m. (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 the customer has any subscribers to the Order Shipping Alert), and updates the list each time an order is shipped.

The event trigger runs the stored procedure OrderShippingAlertsSp 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 OrderShippingAlert has 3 actions:

Event Trigger

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

 


Related Topics

About Workflow Event Handlers

Setting Up and Activating Workflow Event Handlers

Modifying Workflow Event Handlers