I created a lot of product metafields recently using GraphQL.
Unfortunately I did not define them before creating each product metafield, so they are not easily accessible in the admin interface.
So I’d like to define them so they show up when I click on a product to edit it.
If I go to the ‘Custom Data’ tab in the admin settings, and click ‘Product metafield definitions’, then click the ‘Metafields without a definition’ tab, I can see all of these metafields without definitions and the number of references.
If I click ‘Add Definition’ next to one of these properties, it appears I can define them, but when I try to ‘Select type’, all of the types I need are greyed out.
It won’t let me pick ‘File’, despite the fact that every metafield with the same key is a file reference.
Are you trying this on desktop or mobile? Some metafield settings can be greyed out on mobile, so if you are using a mobile device I’d recommend trying this on desktop to see if you can select the option you’d like. If it’s still not working for you, please contact our support team through the Help Center here so we can look into this with you in more detail. If you are a Shopify Partner you can also contact us through the “Support” tab in your Partner dashboard.
+1
I am having precisely this same problem. I cannot create a definition with type “file_reference” on unstructured metafields created by graphql. This has caused major problems for my client.