[ { "label": "Transfer all line item properties to order tags", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [], "actions": [ { "type": "order_add_tags", "settings": { "token_object_type": "order", "tags": "{% for line_item in order.line_items %}\r\n {% for key, property in line_item.properties %}\r\n {% if property | length and key != \"SOMETHING TO IGNORE\" %}\r\n {{ property }}, \r\n {% endif %}\r\n {% endfor %}\r\n{% endfor %}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "" }, "weight": 999, "target_key": "order" } ] } ], "shared_workflow_id": 2345 }, "description": "This workflow fires when an order is created. The workflow will loop over all line item properties and transfer them to tags on the order. An example of excluding certain properties is provided as part of the workflow." } ]