[ { "label": "Tag & remove tags customer based on calculated age from dob metafield", "trigger_type": [ "customer_updated" ], "object_type": "customer", "app_id": "triggers", "tags": [], "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "customer.twig_condition", "settings": { "title": "Check if customer is above 48 years old", "value": "{% set val = customer.metafields.cf_app.dob_main.value|date('Y-m-d') %}\r\n{% set curr = \"now\"|date_modify('-48 years')|date(\"Y-m-d\") %}\r\n{% if curr > val %}\r\ntrue\r\n{% endif %}", "token_object_type": "customer", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "customer_remove_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "tagXY", "token_object_type": "customer" }, "weight": 999, "target_key": "customer" } } } }, "shared_workflow_id": 38630 } } ]