Retrieve Order Status Page URL trough Flow (in late 2024)

Retrieve Order Status Page URL trough Flow (in late 2024)

Koennn
Excursionist
36 0 38

Hello,

 

I would like to retrieve a link to the Order Status Page via Shopify Flow. This used to work with the following code:

 

 

 

{{storeUrl}/orders/{{order.id | split: '/' | last }}

 

 

 

However, this method stopped working this week. I found another post describing this issue outside of Flow: https://community.shopify.dev/t/order-status-page-no-longer-includes-the-order-id/2603

 

What is an alternative way to get the order status page? Any help is appreciated.

 

Kind regards,

Koen

Replies 2 (2)

paul_n
Shopify Staff
1509 164 353

Your code has a bug in it, as it's missing a `}`. 

 

Those variables look like a token and the shop id. I don't see where the token is available in the GraphQL Admin API that Flow uses. Shop id is {{ shop.id }} (haven't tested that it's the same number but assume so). 

 

Also, I do see that the 2024-10 API introduces an order.statusPageUrl field. Flow is currently using 2024-04 and planning to upgrade to 2024-10 in Q1. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Koennn
Excursionist
36 0 38

Thanks for noticing the typo. I replaced my actual store url with the code just not to have it here online. The current code worked for about 2 years. 

 

Good to hear that an solution is coming in Q1. Does it mean that in the meantime I cannot share order status page with our customers right now?