Accessing App-Specific Metafields in Shopify Function API

Topic summary

A developer has stored data in their app’s metafields but cannot access this data through the Shopify Functions API when implementing a product discount.

The Issue:

  • App-specific metafields are created and populated
  • These metafields are inaccessible when building a product discount function
  • The developer is seeking guidance on how to retrieve this metafield data within the Functions API context

Status: The question remains unanswered with no solutions or workarounds provided yet.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

I have stored data in my app’s metafields, but I am unable to access this data in the Shopify Functions API when implementing a product discount. What can I do to access these metafields within the Functions API?