I have a non-physical item with sku “shipping-protection” which I want to be automatically fulfilled. I initially did that with the “Fulfill a digital item in an order” template but I want it to only be fulfilled after other physical items have been fulfilled. How can I do this?
You could run the workflow on “Order fulfilled” and then check if only one item is unfulfilled and if that item has that SKU. You may need to use Run code to loop over the fulfillment orders and items to do that. There are some examples on how to use run code here: https://github.com/Shopify/flow-code-examples/tree/main/run-code-examples