I’m attempting to create something to do the same. Unfortunately while it seemed I had it set correctly in testing it was sending emails for all orders, disregarding my check for “location”. (Now I got a weird but where I can’t connect my checks to actions)
The only real success I was able to get was to populate an email with the order number, product sku, quantity and customers shipping address. All well and good but its not sending that email for JUST a specific location, but all locations.
I’d imagine once you get the checks to sort based on location you can then do actions for each check to send an internal email as you are allowed to designate a static email address.
When an order is placed the system already designates a location based on inventory, so I personally don’t need it to check for inventory before pulling location but that might be where my hangup is at, not sure.
Upon order creation - Check Location Name A - if yes then perform action send email to locationA@mystore.com
If not then
Check Location Name B - If yes then perform action send email to locationB@mystore.com
if not then
Check Location Name C - If yes then perform action send email to locationC@mystore.com
Here are some of the variables I was able to use in generating the emails through flow
Subject: Order {{order.name}} (This puts the order ID Number in the subject line)
Email Body
{{order.subtotalLineItemsQuantity}} items: (Gives the amount of items)
{% for lineItems_item in order.lineItems %}
{{lineItems_item.sku}}
{% endfor %}{% for lineItems_item in order.lineItems %}
{{lineItems_item.variantTitle}}
{% endfor %}
{{order.shippingAddress.firstName}} {{order.shippingAddress.lastName}}
{{order.shippingAddress.address1}}
{{order.shippingAddress.city}}
{{order.shippingAddress.province}}, {{order.shippingAddress.zip}}
“Province” also pulls state, took me a while to figure that portion out. Unfortunately the formatting of the email isn’t great and I can fix that once I get my location check functioning properly.