[ { "label": "Unpublish product from Web & POS when out of stock", "trigger_type": [ "product_updated" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "product.inventory_quantity", "settings": { "operator": "lte", "value": "0", "token_browser": "{{ Browse Tokens }}", "token_object_type": "product", "condition_type": "AND" }, "weight": 999 } }, "actions": { "2": { "type": "shopify_api_request", "settings": { "wait": "0", "custom_wait": "", "label": "", "method": "PUT", "path": "products\/{{product.id}}", "data": "{\r\n \"product\": {\r\n \"id\": {{ product.id }},\r\n \"published_at\": \"\",\r\n \"published_scope\": \"web\"\r\n }\r\n}", "response_handle": "", "response_object_type": "", "parent_data": "", "workflow_actions": [], "token_object_type": "product" }, "weight": 1009, "target_key": "product" } } } }, "shared_workflow_id": 29620 }, "description": "This automation is fired when a product is updated. It checks to see if the product's inventory level is below zero and if the condition passes, it unpublished the product. This workflow helps merchants is removing items that are out of stock from the storefront and prevent customers from buying unavailable items. " } ]