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
- Go to Products โ Add Product
- Add a title (e.g., Cotton T-Shirt)
- Under Variants, add a variant (e.g., Size – Small /Medium / Large)
- Set the inventory quantity (e.g., 10, 5, 0)
- Save the product
- 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