[ { "label": "Change inventory policy when inventory at a certain location drops below a threshold", "trigger_type": [ "inventory_level_updated" ], "object_type": "inventory_level", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": { "3": { "field": "inventory_level.location._location_selection", "settings": { "condition_type": "AND" }, "weight": 20 }, "2": { "field": "inventory_level.available", "settings": { "operator": "lte", "value": "0", "token_browser": "{{ Browse Tokens }}", "condition_type": "AND" }, "weight": 10 }, "1": { "field": "inventory_level.inventory_item.sku", "settings": { "operator": "not_empty", "value": "" }, "weight": 30 } }, "actions": [ { "type": "product_variant_set_fields", "settings": { "wait": "0", "custom_wait": "", "fields": { "inventory_policy": { "value": "continue" } } }, "weight": 40, "target_key": "inventory_level.inventory_item.variant" } ] } ], "shared_workflow_id": 2233 }, "description": "This workflow fires when an inventory level is updated. It checks if the quantity of the item at a specific location is 0, and if so it will change the inventory policy setting. SKU is required for this workflow." } ]