Default metafield value

Is it possible to set a default value for a Shopify Order metafield?
I do not think it is, but the Shopify AI support suggests it might be.

Hi @Jonathan_Davies

Are you considering using Shopify Flow? When creating an order, assign a value to the metafield

As mentioned on Slack, and for the benefit for others here.

It is not possible to set ‘default’ values for metafield’s in Shopify.

There are some workarounds depending on how you’re using them, for example, if reading the metafield in Liquid, simply use the default filter, e.g:

{% assign my_order_metafield = order.metafields.key.namespace | default: 'value' %}

Yes - but concerned about the possible latency. It needs to be there right from the point of order creation.