App reviews, troubleshooting, and recommendations
Hi all i am try to create the AppOwnedMetafield usage of the graphql
# Create app meta field
mutation CreateAppOwnedMetafield($metafieldsSetInput: [MetafieldsSetInput!]!) {
metafieldsSet(metafields: $metafieldsSetInput) {
metafields {
namespace:secret_keys,
key:api_key_ga3,
type:single_line_text_field,
value:ga343434344,
ownerId:`gid://shopify/AppInstallation/3`
}
userErrors {
field
message
}
}
}
here is graphql Query
Hello @Anonymous
write_metafields
scope.
mutation {
metafieldCreate(input: {
namespace: "your_app_namespace"
key: "your_metafield_key"
value: "your_metafield_value"
valueType: STRING
ownerType: SHOP
}) {
metafield {
id
}
userErrors {
field
message
}
}
}
namespace
, key
, value
, valueType
, and ownerType
fields according to your requirements. The namespace
and key
fields uniquely identify the metafield, while the value
field holds the actual data. The valueType
field specifies the data type (e.g., STRING, INTEGER, JSON_STRING). The ownerType
field defines the scope of the metafield (e.g., SHOP, PRODUCT, CUSTOMER).
Thank you!!
@oscprofessional Thanks for the your answer. but I am using the app own meta filed.
I was not able to trackback with shopify admin api 2022-07 it was. now I need to update.
those API.
https://shopify.dev/docs/apps/custom-data/metafields/app-data
app own meta only access by the app theme extension that was good.
can you please help in same.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025