Create metafield definition for app-data metafield of type 'API_PERMISSION'

Create metafield definition for app-data metafield of type 'API_PERMISSION'

DevArin
Shopify Partner
1 0 1

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.

 

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

 

Reply 1 (1)

hitanshu88
Shopify Partner
12 1 11

Where you able to find a solution for this ?