Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
My app has several custom metafields attached to the ProductVariant entity. I've subscribed to a products/update and products/create webhooks, however they're only triggered when product's or product variant's fields are updated, not their metafields.
Is there a way we could subscribe to metafields updates?
I subscribe to the webhook from my Remix app:
const shopify = shopifyApp({
...
webhooks: {
...
PRODUCTS_CREATE: {
deliveryMethod: DeliveryMethod.Http,
callbackUrl: "/webhooks",
includeFields: ['id', 'variants', 'metafields'],
metafieldNamespaces: ['$app:calendar']
},
PRODUCTS_UPDATE: {
deliveryMethod: DeliveryMethod.Http,
callbackUrl: "/webhooks",
includeFields: ['id', 'variants', 'metafields'],
metafieldNamespaces: ['$app:calendar']
}
},
});
Also the 'metafields' field is always empty in the web hook's payload.