ShipHero now allows you to run automation rules based on where items are allocated. To make this possible, we have introduced new features to our automation rule settings, including the ability to run an automation rule after MWA.
Automation Rules for MWA
Under Orders > Automation Rules, there are 3 new options to trigger a rule based on where items are allocated in an order:
- All Items Allocated To Warehouse
- Any Item Allocated To Warehouse
- No Items Allocated To Warehouse
There is also a new checkbox, Only run after MWA. When this flag is active, the automation rule will only run once MWA is complete, which is necessary for the new triggers to work correctly.
Note: Only enable this flag for rules that depend on the allocated warehouse. Enabling the flag for other rules may have unintended consequences (see below).
Caution: MWA rules run every time an order is processed, which means that the rule could run many times before the order is completely fulfilled.
If an automation rule that is set to run after MWA does something like add an item to an order or change the status, it could result in the item being added many times, or it could revert the status from a manual change.
To prevent unintended behavior, other trigger conditions should be used to ensure that those rules are only run when needed. For example, you could include a trigger condition that the item you want to add does not already exist on the order.
These rules will also run after an order ships. You can use the Number of Pending Line Items trigger to prevent the rule from running if there are no items left in the order.
Given the nature of these rules, we highly recommend that you thoroughly test automations before using them for real orders. The use of a test order status or other narrowly defined triggers can be used to test rules on specific orders only. To trigger an automation during testing, the Reprocess button on the order detail page can be used to trigger the rule to run.