Product variant out of stock

The Product variant out of stock trigger starts a workflow when the inventory for a product variant decreases from 1 or more to 0 or less. The source of the inventory change can be an order, a manual change to inventory, or an app that changes inventory quantities.

Data provided

The following data is provided to workflows that start with the Product variant out of stock trigger.

Data that is provided to workflows with the Product variant out of stock trigger.
DataDescription
productVariantThe product variant which had its inventory quantity changed.

Testing the Product variant out of stock trigger

To test a workflow that starts with this trigger, change a variants's inventory from greater than 0 to 0.

Actions

Any action that requires a variant or a product can be used with the Product variant out of stock trigger. These include:

API details

The Product variant out of stock trigger allows actions to be taken with the Product Variant Graphql API object.

Templates

The Flow template library has examples that make use of the Product variant out of stock trigger. These examples show how to make use of inventory for products, variants, and per location.

Archive product is all variants are out of stock at all locations

Archives a product if all variants are out of stock at all locations. Runs when a single product variant goes out of stock. View template

Delete product variants that have been out of stock for a week

Automatically deletes product variants that have been out of stock for seven days. View template

Can’t find the answers you’re looking for? We’re here to help.