I am building out a workflow that has a query, that leads to a loop that has a workflow lambda inside of it. when I try to access the value to pass to the workflow it says that value and index are underfined. If I use a JS Code Lambda in the loop I can access value and index. But I've tried workflows and Retool AI and they both say value and index are undefined.
I should add that I've tried value with and without the moustache handlebars. It's treated as a string without the curly braces. I've also review the other tickets and tried switching away from the lambda and coming back (suggested in other seemingly relevant tickets). Thanks for any help you can offer.
@rodeo_mike, is your second workflow getting called with any data? Despite the linting error, this should be working.
The linting for the value.id not being defined is somewhat expected. When the block is not being run (ie while we are looking at it, editing it etc) value doesn't exist. It's a relatively common linting error in Retool that we are looking into. When the lambda is run though, 'value' is in context and has a value.
This is confirmed when I call a second workflow with and simply console.log the data passed into the startTrigger.