I'm building a discount Function on cart.lines.discounts.generate.run (API 2026-04, public app). I want product.inCollections(ids: $rulesProductCollections) where $rulesProductCollections is populated at runtime from a shop metafield the merchant configures through my app. Every configuration I've tried either fails CLI deploy or makes the binding silently no-op. Looking for someone who has this working in production and can tell me the actual...
Originally asked by Balazs Balthes on Stack Exchange (stackoverflow) (CC BY-SA 4.0).