App reviews, troubleshooting, and recommendations
In my app, I am using app-data metafield to create a metafield using metafieldsSet which creates metafield of ownerType 'API_PERMISSION'. But I got a deprecation notice saying that As of 2023-01, `metafieldsSet` no longer requires `type` when a corresponding metafield definition exists. So I tried to create metafield definition using metafieldDefinitionCreate query and passed the ownerType as 'API_PERMISSION'. But the metafield definition is not getting created.
Below is the error message:
{
"data": {
"metafieldDefinitionCreate": {
"createdDefinition": null,
"userErrors": [
{
"code": "INCLUSION",
"field": [
"definition",
"ownerType"
],
"message": "Owner type is not included in the list"
}
]
}
},
App-Data metafield Doc: https://shopify.dev/docs/apps/custom-data/metafields/app-data
Metafield Definition Create: https://shopify.dev/docs/apps/custom-data/metafields/definitions/manage-metafield-definitions
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024