Hi,
I’m working on a Flow that will send an internal email whenever a certain type of product is present in an order. I have that working well using the Vendor Name condition. I am trying to only have it list the products that match the criteria (or a different one if need be) in the body of the email. Right now it is listing all of the products in the order (I’m testing this with Draft Orders so don’t mind that the variable name is off).
This is the code in the Message field of the Flow:
Draft Testing:
Order {{draftOrder.name}}
Customer: {{draftOrder.customer.firstName}} {{draftOrder.customer.lastName}}
{% for lineItems_item in draftOrder.lineItems %}
•{{lineItems_item.product.title}}
- {{lineItems_item.variant.title}}
{% endfor %}