[ { "label": "Tag new customers with an incrementing value", "trigger_type": [ "customer_created" ], "object_type": "customer", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "custom", "settings": { "wait": "0", "custom_wait": "", "label": "Add a custom tag and increment the value", "twig": "{% set current_customer = shop.database.customer|plus(1) %}\r\n{% set output = RUN_ACTION('customer_add_tags',{\r\n resource: customer,\r\n tags: [\"SR100\"~current_customer]\r\n})%}\r\n{% set output2 = RUN_ACTION('set_database',{\r\n key: \"customer\",\r\n value: current_customer\r\n}) %}", "token_object_type": "customer" }, "weight": 999, "target_key": "customer" } } } }, "shared_workflow_id": 33997 }, "description": "This automation will tag every new customer with an incremental value. Such as cust1, cust2, cust3 and so on..." } ]