[ { "label": "Set product to active from draft or archived when back in stock ", "trigger_type": [ "inventory_level_updated" ], "object_type": "inventory_level", "app_id": "triggers", "tags": [], "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "inventory_level.available", "settings": { "operator": "gte", "value": "1", "token_object_type": "inventory_level", "condition_type": "AND" }, "weight": 10 }, "5": { "field": "inventory_level.inventory_item.variant.product.status", "settings": { "operator": "any", "value": { "archived": "archived", "draft": "draft", "active": 0 }, "condition_type": "AND" }, "weight": 20 }, "6": { "field": "inventory_level.inventory_item.sku", "settings": { "operator": "not_empty", "value": "", "long_value": "", "token_object_type": "inventory_level", "condition_type": "AND" }, "weight": 999 } }, "actions": { "4": { "type": "shopify_api_request", "settings": { "wait": "0", "custom_wait": "", "label": "", "method": "PUT", "path": "products\/{{ inventory_level.inventory_item.variant.product.id }}", "data": "{\r\n \"product\": {\r\n \"id\": {{ inventory_level.inventory_item.variant.product.id }},\r\n \"status\": \"active\"\r\n }\r\n}", "response_handle": "", "response_object_type": "", "parent_data": "", "workflow_actions": [], "token_object_type": "inventory_level" }, "weight": 60, "target_key": "inventory_level" } } }, "2": { "conditions": [], "actions": { "1": { "type": "debug", "settings": { "wait": "0", "custom_wait": "", "action_label": "", "title": "", "body": "Quantity Available: {{ inventory_level.inventory_item.variant.product.inventory_quantity }}\r\nStatus: {{ inventory_level.inventory_item.variant.product.status }}\r\nSKU: {{ inventory_level.inventory_item.sku }}", "token_object_type": "inventory_level" }, "weight": 999, "target_key": "inventory_level" } } } }, "shared_workflow_id": 39551 } } ]