Goal: Automatically make specific products unavailable after a sale ends (post–March 31) using Shopify Flow, since product pages only allow scheduling to Published.
Issue: A Flow using “Get product data” failed to add a test tag due to an incorrect GraphQL filter field in the product query. Screenshots showed the Flow setup and failed test, indicating a query mismatch.
Guidance provided:
Use the correct GraphQL field name product_type (not ProductType) when querying products via the Admin API.
Consult Shopify’s Admin GraphQL docs (products connection) and the Flow “Get product data” action docs.
Validate the query first in an HTTP client (e.g., Postman) to ensure expected data is returned.
Outcome: After applying the correct field (product_type), the user successfully created their first custom Flow. The immediate problem appears resolved; no further unresolved questions noted.
Context notes:
Shopify Flow: automation tool for store operations.
GraphQL Admin API: used to query product data for Flow actions.
TL:DR… use product_type not ProductType. I’d also recommend testing this in PostMan or another HTTP client tool first to make sure the query and data matches what you expect.