Shopify Custom icon

Shopify Custom

Shopify Admin GraphQL node with metafields and definitions support

Metafield Value → Get

AI-generated

Summary

Fetches a single metafield value from a Shopify owner object (product, variant, collection, customer, order, etc.) by owner ID, namespace and key, via the Shopify GraphQL Admin API.

Inputs

  • Authentication — Admin API Credentials (legacy access token or Dev Dashboard client credentials) or OAuth2. Defaults to Admin API Credentials.
  • Owner Type — Kind of object that owns the metafield: Article, Blog, Product, Product Variant, Collection, Customer, Order or Draft Order. Defaults to Product.
  • Owner ID (required) — Shopify global ID of the owner, e.g. gid://shopify/Product/123.
  • Namespace (required) — Namespace of the metafield.
  • Key (required) — Key of the metafield within the namespace.
  • Output Mode — Simplified (default), Raw (full GraphQL response data), or Selected Fields.
  • Selected Fields — Comma-separated list of field names to keep in the output (e.g. ID,title,status). Only shown when Output Mode is Selected Fields.

Output shape

One output item per result for the requested metafield, shaped according to Output Mode: simplified metafield data, the raw API payload, or only the chosen fields.

The source pack shows only signatures for the execute and registry code, so the exact metafield fields returned and the behavior when the metafield doesn't exist are not confirmed. GraphQL errors are surfaced as node errors.

Examples

Example 1: Read a product's custom 'specs.material' metafield before generating a description.

Owner Type: Product; Owner ID: gid://shopify/Product/1234567890; Namespace: specs; Key: material; Output Mode: Simplified.

Example 2: Look up a customer's loyalty tier metafield and keep only certain fields.

Owner Type: Customer; Owner ID from the previous node; Namespace: loyalty; Key: tier; Output Mode: Selected Fields with a comma-separated list of the fields to keep.

Links

Discussion