I’m developing a thank you page which needs to display some data from the current order that get’s populated on the backend through flow, slightly after the order is completed (basically a subscription contract id). I’ve set up an example thank you page according to this github repo: https://github.com/Shopify/example-checkout–order-status–preact I’ve also set up a flow which saves out a customer metafield containing the subscription id, and I know it’s populating correctly.
According to this documentation this data should be accessible but it seems like it only pops up in my order status variation of the thank you page: https://shopify.dev/docs/api/checkout-ui-extensions/2024-01/configuration#metafields But not on the thank you page itself.
Question:
Do I need to delay the function and wait for the metafield to populate? I have a function subscribed to the appMetafields changing, and they do change when the order happens but the value is always blank from the subscriber and on the shopify data object itself. On the Order Status page it populates correctly. Thanks!