[ { "label": "Setting product metafields from product tags", "trigger_type": [ "product_custom" ], "object_type": "product", "app_id": "triggers", "tags": [], "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "product.tags_array", "settings": { "multiple": "any", "operator": "starts_with", "value": "location_", "long_value": "", "token_object_type": "product", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "product_set_metafield_value", "settings": { "wait": "0", "custom_wait": "", "namespace": "custom_fields", "key": "location", "value_type": "string", "value": "{% for product_tag in product.tags_array if product_tag|contains('location_') %}\r\n {{ product_tag|replace('location_','') }}\r\n{% endfor %}\r\n", "token_object_type": "product" }, "weight": 999, "target_key": "product" } } } }, "shared_workflow_id": 39005 } } ]