Flow order tagging by tracking_number

Hello,

In shopify flow when the order is fulfilled I want to tag the order like:

”tracking:12345678”

I need the fulfillment’s tracking number but the app says is invalid.

tracking:{{order.fulfillments.tracking_number}}

“tracking_number” is invalid. Replace this variable.

Where can i found the fulfilled tracking number of the order?

Hello @Akos_Paska,

You should have a fulfillment created trigger. From there, you should be able to access the tracking number as follow:

{% # fulfillment.trackingInfo → Array of trackingInfo objects %}
{% for tracking_info in fulfillment.trackingInfo }}
  tracking:{{ tracking_info.number }}
{% endfor %}

That should solve the issue for you. Try to refer to the Flow GUI to get the correct data:

Good luck !

Hello,

Exactly, that’s what I needed!

Thank you

1 Like