Include order details with flow generated email

Topic summary

A user created a Shopify Flow workflow to send email alerts when specific items are ordered. The workflow triggers correctly based on set conditions, but the user initially struggled to include order details in the notification email.

Problem: Unable to display the order number in the automated email to identify which order triggered the alert.

Solutions provided:

  • Use {{order.name}} variable to display the order number
  • Include a direct link to the order admin page using: https://admin.shopify.com/store/STORE-NAME/orders/{{order.legacyResourceId}}
  • Alternative method: https://admin.shopify.com/store/STORE-NAME/orders/{{order.id | split:'gid://shopify/Order/' | last}}

Current status: The user discovered the “Add Variables to message” option and successfully implemented {{order.customer.displayName}}, but needed guidance on proper syntax for order numbers. Community members provided working variable formats and URL structures to link directly to orders in Shopify admin.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

Hi,

I created a workflow to alert me when specific items get ordered.

I am able to get the flow to work, based on the conditions, as shown here:

What I am not able to figure out is how to include the order number that triggered the flow in the email, so I know which order to check.

Any suggestions on how to include this would be fantastic.

Thanks in advance,

Pete

To update, I found the Add Variables to message option.

I can get {{order.customer.displayName}} to work, but I cannot figure out how to call {{ order_number }}. I tried both just the order number and {{ order.order_number }} but that’s not valid.

Showing the customer name is good, but the order number (or even better a link to the order) would be even better.

This is what worked for me:
https://admin.shopify.com/store/ENTER-YOUR-STORE-HERE/orders/{{order.id | split:‘gid://shopify/Order/’ | last}}

Hi,

Use the variable {{order.name}} to include the Order Number and use the following to include a link to the order admin page:

https://admin.shopify.com/store/STORE-NAME/orders/{{order.legacyResourceId}}

Regards,

Darren.