Mutiple each functions

Hello,

I have just noticed that when I use mutiple each() functions, only one gets recognized and the others are ignored.

How do I make sure the other each() functions are executed? I’m using a kobotoolbox form which has mutiple array quetions hence the use case for mutiple each() functions.

edit: I also found the option of beta.each(), but the function is not available. I’m using a PostgreSQL database.

Check out the documentation for each, and specifically “beta.each”: The each(...) operation | OpenFn/docs

The issue is that each(...) actually changes your scope. To perform the operation on everything inside the “each” and then re-scope to the top-level, use beta.each.

For technical docs—and to propose changes! I don’t love how we do the beta—see: