[ { "version": 1, "label": "Change a product's tax code", "trigger_type": [ "product_bulk_op" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": { "1": { "field": "product.tags_array", "settings": { "multiple": "any", "operator": "equals", "value": "My Tag", "long_value": "", "token_object_type": "product", "condition_type": "AND" }, "weight": 999 } }, "actions": [ { "type": "trigger_child_workflow", "settings": { "wait": "0", "custom_wait": "", "target_path": "product.variants", "exported_workflow": { "version": 1, "label": "Variant subworkflow", "trigger_type": [ "product_variant_custom" ], "object_type": "product_variant", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [], "actions": [ { "type": "product_variant_set_fields", "settings": { "wait": "0", "custom_wait": "", "fields": { "tax_code": { "value": "MYCODE" } } }, "weight": 999, "target_key": "product_variant" } ] } ] } } }, "weight": 999, "target_key": "product" } ] } ], "instructions": "## Setup\r\n1. Change the tag conditions to look for your special tag.\r\n1. Edit the Subworkflow and set the tax code you'd like to use." }, "description": "This workflow runs in a bulk operation. It checks for any conditions you may have set up. Our example looks for certain product tags then loops over all product variants and sets the tax code for each one." } ]