Webhook is not triggered after on metafields update

Webhook is not triggered after on metafields update

styshchenko
Shopify Partner
2 0 0

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.

Replies 0 (0)