Shopify product update webhook not triggered on clearing variant metafield object

I am running into an issue where the product/updates webhook does not send a webhook when a product variant metafield’s metaobject is cleared. This seems to be a bug as adding a metaobject to a metafield on a variant causes a webhook to trigger, but pressing the “clear” button to remove it does not cause any webhook event to happen. This is important to me to not have stale data on my side, as there is no way to listen for this. Doing this same thing at the product level (aka clearing a metaobject off a metafield for a product itself) DOES cause a product/update webhook.

Is this just a straight up bug or is there something I am missing here. Any help would be greatly appreciated

Hey @c_tot :waving_hand: - thanks for reaching out/flagging. This is currently a known limitation, there’s a bit more info here:

That said, this is something we’ve flagged internally. I can’t guarantee a timeline or a fix, but did just want to let you know we are looking into this. Let me know if I can clarify anything more on our end here. Hope this helps a little bit.

INTERNAL NOTE:

https://github.com/shop/issues-product-foundations/issues/2027

Hi @c_tot,

If the option of reacting to changes in a product variant’s metafields in Shopify Flow works for you and you don’t mind using third-party apps, you can use the Product variant metafield changed trigger from the Flow Companion app to react to changes in a metafield’s value. This trigger starts a workflow even when the metafield is cleared.

To make this trigger work, you need to select the metafields to track in the app settings.