[ { "label": "Change a product inventory policy based on the tag", "trigger_type": [ "product_custom" ], "object_type": "product", "app_id": "triggers", "tags": [], "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "product.tags", "settings": { "operator": "contains", "value": "my-tag", "long_value": "", "token_object_type": "product", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "trigger_child_workflow", "settings": { "target_path": "product.variants", "exported_workflow": { "label": "Variant subworkflow", "trigger_type": [ "manual" ], "object_type": "product_variant", "app_id": "triggers", "tags": [], "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "product_variant_set_fields", "settings": { "wait": "0", "custom_wait": "", "fields": { "inventory_policy": { "value": "continue" } }, "token_object_type": "product_variant" }, "weight": 999, "target_key": "product_variant" } } } } } } }, "weight": 999, "target_key": "product" } } } }, "shared_workflow_id": 37428 } } ]