[ { "label": "Delete product metafield if no tag exists ", "trigger_type": [ "product_bulk_op" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "product.tags_array", "settings": { "multiple": "none", "operator": "equals", "value": "AKTION", "long_value": "", "token_browser": "{{ Browse Tokens }}", "token_object_type": "product", "condition_type": "AND" }, "weight": 999 }, "2": { "field": "product.metafields", "settings": { "multiple": "any", "metafield_selection_type": "custom", "change_metafield_selection_type": "Select", "namespace": "custom", "key": "badges", "value_type": "dimension", "select_value_type": "Select", "operator": "not_empty", "value": "", "unit": "mm", "token_browser": "{{ Browse Tokens }}", "token_object_type": "product", "condition_type": "AND", "metafield_definition": null }, "weight": 999 } }, "actions": { "1": { "type": "shopify_api_request", "settings": { "token_object_type": "product", "label": "Delete metafield value", "method": "DELETE", "path": "products\/{{ product.id }}\/metafields\/{{ product.metafields.custom['badges'].id | raw }}", "data": "", "response_handle": "", "response_object_type": "", "parent_data": "", "workflow_actions": [], "twig": "{{ response | debug }}", "wait": "0", "cw_timezone": "Europe\/Berlin", "custom_wait": "", "run_once": 0 }, "weight": 999, "target_key": "product" } } } }, "shared_workflow_id": 257345 }, "description": "This automation is triggered when a product is updated or sold. It checks if a predefined tag has been removed, and if it has been removed, it proceeds to delete the related metafields from the product." } ]