[ { "label": "Create a Trello card for each order attaching product images from the line items", "trigger_type": [ "order_created" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": { "1": { "type": "trello", "settings": { "wait": "0", "run_once": 0, "custom_wait": "", "board_id": "", "list_id": "", "title": "Art Order {{ order.name }}", "description": "Order line items\r\n{# You can extra information such as the customer notes and details #}\r\n{% for line_item in order.line_items %}\r\n {{ line_item.title }}:{{ line_item.final_price }}:{{ line_item.fulfillable_quantity }}\r\n{% endfor %}", "due_date": "", "attachment": "{% for line_item in order.line_items %}\r\n {% for product_image in line_item.product.images %}\r\n {{ product_image.src }}\r\n {% endfor %}\r\n{% endfor %}", "token_object_type": "order" }, "weight": 999, "target_key": "order" } } } }, "shared_workflow_id": 41552 }, "description": "This automation is fired when an order is created. The workflow loops through the line items, pulling images from the line item properties and adding them to a newly created Trello card with the order number as the card title." } ]