Notify PO Line Due Date Changed - Workflow Event Handler
Use this event handler to automatically notify certain people when the due date is changed on a purchase order line, which may result in an inventory shortage. The notification can be an external email and/or a message sent to the Inbox form for SyteLine users.
This is the text of the notification that is sent:
To: receipient
From: originator
Subject: Possible Inventory Shortage Alert
Body: The Due Date for Purchase Order ponum Line poline Item item has
been changed from oldduedate to newduedate. An inventory shortage may
result from this change.
Variable Information
Variable | Description |
---|---|
recipient | For an Inbox message, this is the user name you specify in the Notify Users field on the Workflow Event Handler Activation form. You can specify multiple names separated by semicolons.
For an external email, this is the email address you specify in the Email Users field on the Workflow Event Handler Activation form. You can specify multiple names separated by a semicolons. |
originator | For an Inbox message, this is usually the name of the user who performed the action that generated the message.
For an external email, this is usually the email address associated with the SyteLine user who performed the action that generated the message. However, if the user does not have an associated email address in the Users form, or if the system cannot determine a user associated with the action, a default address or name is used. In some cases, this default is the email address for the SMTP User Name associated with the intranet entered on the Site/Entities form for the site. |
ponum | This is the number of the purchase order with a line whose due date has changed. |
poline | This is the line number of the purchase order whose due date has changed. |
item | This is the item on the PO line whose due date has changed. |
oldduedate | This is the old value of the Due Date field on the Purchase Orders form. |
newduedate | This is the new value of the Due Date field on the Purchase Orders form. |
Global Constants
These global constants are created by the event handler, based on the entries you make in the Workflow Event Handler Activation form:
Global Constant | Contains |
---|---|
CheckPurchaseOrderDueDateManagerID | Contents of the Notify Users field |
CheckPurchaseOrderDueDateManagerEmail | Contents of the Email Users field. |
Associated Event and IDO
The event IdoOnItemUpdate for the SLPoitems IDO triggers this notification.