[ { "label": "Tag orders based on the assigned fulfillment location", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "order_add_tags", "settings": { "token_object_type": "order", "tags": "{% for fulfillment_order in order.fulfillment_orders %}\r\n{% set loc = shop.locations[fulfillment_order.assigned_location_id] %}\r\n{{loc.name}},\r\n{% endfor %}", "wait": "0", "cw_timezone": "Africa\/Nairobi", "custom_wait": "" }, "weight": 999, "target_key": "order" } } } }, "shared_workflow_id": 38625 }, "description": "The automation is fired when an order is created and it tags the order with each line item's assigned fulfillment location." } ]