Updating Product Metafield in Shopify

I am trying to set up a scenario where I can update google metafields in Shopify. I know the metafield ID that I am trying to update, but if that field is currently empty the search for metafield will not return the field I am looking for.

I have tried two setups. The first is using “update a metafield” with the setup below.

When I run that I get this error.

I saw elsewhere that the action I should use is “create a metafield” which seems strange but I tried that as well with this setup.

And I got this error.

Any help on where I’m going wrong would be appreciated.

2 Likes