The result keyword will execute each specified workflow in thelam.result array with its corresponding payload. This keyword allows for iterative operations (i.e. running a POST request for various objects in a list) that should be run asynchronously and will not block the current running workflow's execution.
Examples
Explanation
Note: if we output an array of JSON objects from a data transformation, the Lam compiler will automatically group each outputted element in a lam.result array in order to store one JSON output.
In this example, we're making use of this functionality by outputting several JSON objects in the form:
That will then be collected under the lam.result key: