Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hello, I am trying to use Shopify Flow to create a message which contains a link to the order page. The backend order page, not the customer-facing order page.
Here is what I am using that I thought should work:
https://XXXX.myshopify.com/admin/orders/{{order.id}}
But this is returning:
https://XXX.myshopify.com/admin/orders/gid://shopify/Order/4472173920411
Is there a way to get just the order id without the leading "gid://shopify/Order/"? Otherwise, is there a way to strip that section so it just returns the numerical order id?
Thanks!
Solved! Go to the solution
This is an accepted solution.
Figured it out. Posting for future reference. Use {{order.legacyResourceId}} if you want to avoid the extra GID text.
https://XXXX.myshopify.com/admin/orders/{{order.legacyResourceId}}
This is an accepted solution.
Figured it out. Posting for future reference. Use {{order.legacyResourceId}} if you want to avoid the extra GID text.
https://XXXX.myshopify.com/admin/orders/{{order.legacyResourceId}}
For future references, the same happen with customer.id in Shopify Flow Email.
{{customer.id}} -> gid://shopify/Customer/6877777....
Use instead:
{{customer.legacyResourceId}} -> 678.....
For better use:
<a href="https://STORENAME.myshopify.com/admin/customers/{{customer.legacyResourceId}}">{{customer.legacyResourceId}}</a>
Just posting this for anyone else thats out there, but i was getting the same issue when trying to link to a product from the flows.
It works using the same logic, but replacing order with product = {{product.legacyResourceId}}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025