working with metafield variant type dimentions - update comes empty

Hi!

I’ve been working on a workflow to automatically add “dimensions” metafields to a variant every time a new product is created. Unfortunately, the results aren’t displaying on the product. We’ve set it up to include the following JSON: {“value”: 100, “unit”: “CENTIMETERS”}

However, it always comes back empty.

I believe I might be using the wrong syntax. Could you please help me with this issue?

Thx guys

You are using a product metafield in that screenshot. Don’t you want to update a product variant metafield?

Also, while I’m not sure if “CENTIMETERS” is accepted, in my UI I see “cm” for centimeters.

1 Like