Sending a Message in Slack Channel with Order Fulfilment Information

Hello,

I am trying to set up a Shopify Flow automation whereby the item name, variant title, and respective quantity for each line item is sent through to a slack channel that our fulfilment partners are on.

Ideally, it would look something like this:

{{order.billingAddress.firstName}} from {{order.billingAddress.city}}, {{order.billingAddress.country}} placed an order for the following items:

  1. (Product 1 ) (Variant) (Quantity)

  2. (Product 2 ) (Variant) (Quantity)

  3. etc

    So far, I have this, but I am not sure it is correct:

    {{order.id}}, {{order.billingAddress.firstName}} from {{order.billingAddress.city}}, {{order.billingAddress.country}} placed an order for the following items.

    {% for lineItems_item in order.lineItems %}
    {{lineItems_item.name}}::{{lineItems_item.variantTitle}}::{{lineItems_item.currentQuantity}}::{{lineItems_item.originalUnitPriceSet.presentmentMoney.amount}}::{{lineItems_item.sku}}::{{lineItems_item.product.customProductType}}##
    {% endfor %},
    {{order.createdAt}},
    {{order.customer.email}}

    Thanks for taking a look at this and really appreciate your help!

The code looks ok to me. Is there an issue? Do you need the numbers or are bullets fine? If bullets are fine, you could prefix each row with

* {{ code goes here }}

If you need numbers, you can use the for each loop counter:

{{ forloop.counter }}. {{rest of code}}

Also, I don’t think you need the ## at the end.