Hi there. I created a metafield in my app by placing it in the shopify.app.toml file.
[product.metafields.app.pim_product_id]
type = “single_line_text_field”
name = “PIM Product ID”
description = “Unique product identifier from the connected PIM system”
access.admin = “merchant_read_write”
Now, I want it to be:
[product.metafields.app.pim_product_id]
type = “id”
name = “PIM Product ID”
description = “Unique product identifier from the connected PIM system”
access.admin = “merchant_read_write”
Notice the change in type. However, my app isn’t letting me. When I try to deploy, this happens:
Version couldn’t be created. │
│ │
│ [product.metafields.app.pim_product_id] Cannot change type of existing │
│ metafield definition - type: single_line_text_field │
│
Same thing when trying to test the app via “shopify app dev”. I also can’t delete it via graphql, due the “api not having access”:
“message”: “Access denied for metafieldDefinitionDelete field. Required access: API client to have access to the resource type associated with the metafield definition.\n”,– yes I have product_write and product_read scopes.
I’m really lost.