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>
User | RANK |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023