[ { "label": "Tag orders with the fulfillment tracking numbers", "trigger_type": [ "fulfillment_updated", "fulfillment_created" ], "object_type": "fulfillment", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": { "1": { "field": "fulfillment.tracking_numbers", "settings": { "multiple": "any", "operator": "not_empty", "value": "", "long_value": "", "token_browser": "{{ Browse Tokens }}", "token_object_type": "fulfillment", "condition_type": "AND" }, "weight": 999 } }, "actions": { "1": { "type": "order_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "{% set first_found=0 %}\r\n {% for tracking_number in fulfillment.tracking_numbers %}\r\n {% if first_found!=0 %},{% endif %} \r\n Tracking#{{ tracking_number }}{% set first_found=1 %}\r\n {% endfor %}\r\n", "token_object_type": "fulfillment" }, "weight": 999, "target_key": "fulfillment.order" } } } }, "shared_workflow_id": 76465 }, "description": "This automation fires when an order fulfillment is created or updated. The workflow checks for any tracking numbers on the fulfillment and adds the numbers as tags to the order." } ]