I have a flow in which I’m trying to process a set of products from a [Get product data] block using a [Run code] block attached directly to the Get product data.
I would like to know if there is a way to output a filtered Products array that can be used by subsequent blocks.
The troubleshooting link points to Troubleshoot this error which features this image:
But I noticed my flow has an additional option:
- Define a
Productthrough the “Run code” step
So I’m wondering if this this is a possibility now, and if so, how should we define our Input (GRAPHQL), our Output (SDL), and JAVASCRIPT for this to work?
Is it documented anywhere?

