๐ŸŽฏ Exercise 8

Build a Dynamic Workflow which takes variant ID Array as input and returns an array whether variants are in stock or not.

Dynamic Payload Sample:

[“47361364721842”, “47361364787378”]

Expected Response Data:

["In Stock", "Out of Stock"]

๐Ÿ› ๏ธ Shopify Store Setup โ€” Before You Begin

  1. Go to Products โ†’ Add Product
  2. Add a title (e.g., Cotton T-Shirt)
  3. Under Variants, add a variant (e.g., Size – Small /Medium / Large)
  4. Set the inventory quantity (e.g., 10, 5, 0)
  5. Save the product
  6. Under Variant, Open the hyperlink Smallโ€” copy the Variant ID from the URL

๐Ÿ’ก The URL will look like: your-store.myshopify.com/admin/products/123456/variants/12345678 That last number is your variant_id to use in the payload.

Similarly copy the variant_id for Large