Work order changed
Fires when the status of a Fulfil work order changes.
This trigger works with Fulfil only.
Fields
- Work order ID: the Fulfil ID of the work order. Pass it to Get work order for the details.
- Current status: the status the work order has now.
- Previous status: the status it had before.
Both statuses are one of draft, request, waiting, running, finished or done.
React to one transition only
The trigger fires on every status change, so add a condition straight after it. Compare Current status to done to act only when production is finished, or check both fields to catch one specific step, like waiting to running.
How quickly it fires
Packwork checks Fulfil for changed work orders every five minutes. If a work order moves through two statuses within those five minutes, Packwork only sees where it ended up, and you get one trigger instead of two. Previous status is then the status from the last check, not the one right before.
Typical use
When a work order reaches done, get the work order, find the Shopify order it was made for, and tag it “Ready to ship” so customer service can tell the customer.
Related
- Work order created fires once, when the work order first appears.