Sending an email when products from specific vendor are in the order

Hi,

I’m trying to create a Flow that would work something like this:

  • A customer places an order with some products from Vendor A and some products from Vendor B

  • The flow checks if the order contains any products from vendor A

  • If the check returns true, an email is sent to a specific email address (always the same, the vendor’s email) with the shipping information, some “additional details” (shipping date from a 3rd party app) and a list of the products from Vendor A and the quantities in the order, excluding all the products from Vendor B.

I’m not sure how to make the flow check accurately for the vendor inside the order. I know I can make the action “send internal email” and use the email address from the vendor, but I’m not sure how to create the content of the email to take the information I need from the order.

Please let me know if you need any further information, I could create an example with real orders to make it more clear.

I’m on Shopify Plus BTW.

Thank you.

Removed

There is a vendor field on the lineItems: order / lineItems / vendor. You can also check order / lineItems / product / vendor.