Solved

Cannot access {{order.order_status_url}}

johnk-mattel
Shopify Partner
3 0 1

In Shopify Flow, I am performing an "Update order note" action, stemming from an "Order fulfilled" event.

For demonstration purpose, I am updating the note with this value:

{"myOrderName":"{{order.name}}","myOrderStatusURL":"{{order.order_status_url}}"}

Shopify Flow handles the "{{order.name}}" as expected.   But the "{{order.order_status_url}}" throws an error message of:

"order_status_url" is invalid. Replace this variable.

Any thoughts/tips why "order_status_url" is unavailable?   A couple more I'd like to access but cannot:

{{shop.domain}}
{{order.token}}

Accepted Solution (1)

paul_n
Shopify Staff
793 118 191

This is an accepted solution.

Flow syntax for accessing variables is not the same as storefront liquid and some shortcuts that storefront offers are not offered in Flow. Use the "Add variable" link to find the field and insert it. Or look at the graphQL Admin API documentation, which has the exact paths and names

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.

View solution in original post

Reply 1 (1)

paul_n
Shopify Staff
793 118 191

This is an accepted solution.

Flow syntax for accessing variables is not the same as storefront liquid and some shortcuts that storefront offers are not offered in Flow. Use the "Add variable" link to find the field and insert it. Or look at the graphQL Admin API documentation, which has the exact paths and names

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.