App namespace metafield in checkout ui extension

Shopify Partner
2 0 2



Didnt find an aswer to this problem in exisitng threads, probably someone can help me with it.

I have a checkout ui extension where I wanted to access the app owned customer metafield (create from app with namespace: $app:testapp and name: testmeta and it is under customer objects). I was trying to put this inside cunfiguration:


 namespace = "$app:testapp"
 key = "testmeta"

Then tried to access it:

const metafields = useAppMetafields();

And in the hook, I logged it:

   useEffect(() => {
  }, [metafields]);

This gives empty array. The customer is logged into the account so this is definitely not the reason. Also this way works fine if the metafield is standard (not the app owned)


Thank you!

Replies 3 (3)

Shopify Partner
6 0 0

Did you solve this yet, I am currently getting empty array as well

Shopify Partner
10 0 1

Facing same issue, Metafield showing on api.appMetafields on console but when I try to get, it's blank ([])


did you find the way how to resolve it? Please guide me on how to resolve this issue.


image (80).jpg



Kurvi Kansagra
Shopify Partner
2 0 2

Unfortunately no, I endup using simple settings to make setup for the Checkout UI extension, which is rather weak solution, but still interested of course