Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Access privateMetafield inside the storefront

Access privateMetafield inside the storefront

kiranupadhyak
Shopify Partner
5 0 0

Hi,

 

I need some help and I'm new to shopify. I have created an app by shopify app create node. After installing the app in the store, it asks for the 12 digit code. When I submit the code, then I'm storing this code using Privatemetafield(https://shopify.dev/api/admin-graphql/2021-04/mutations/privateMetafieldUpsert#section-examples) and also I'm adding the pice of js code(ex: script.js) across all the pages using https://shopify.dev/api/admin-rest/2022-01/resources/scripttag#[post]/admin/api/2022-01/script_tags..... My question is how can I access the 12 digit code inside the script.js?

 

 

Replies 0 (0)