Use Different Attributes in the Condition and Do Simple Math
Create an order management extension that adjusts the value on a variety of attributes in the condition or action, and include a simple mathematical equation.
Assume you have an agreement with a drop ship supplier where the supplier needs 3 days lead-time to before they begin processing sales orders that include the AS54888 item for your Computer Service and Rentals customer. To meet this need, create an extension that implements this logic:
If the Customer attribute on the order header contains Computer Service and
Rentals, and if the Order Type attribute on the order header contains Dropship Orders,
and if the Item attribute on the order line contains AS54888, then set the Ordered Date
on the order header to the value that the Current Date attribute contains plus 3
days.
Test Your Setup
-
Go to the Order Management work area and create a sales order.
Attribute
Value
Customer
Computer Service and Rentals
Order Type
Dropship Orders
-
Notice that the Ordered Date on the order head defaults to the current date. Assume the current date is 9/01/20 10:02 PM.
-
Add the AS54888 item to an order line, then click Submit.
-
Notice that the Ordered Date on the order header is now the current date plus 3 days. In this example, verify that Ordered Date contains 9/04/20 10:02 PM.