You can achieve this functionality by declaring a Dictionary and reusing to collect things on the go.
- initDictionary:
....assign:
......- myDictionary:
.........name: John
and enrichment:
- enrichStep:
....assign:
......- myDictionary:
.........name: ${myDictionary.name}
.........wikiResult: ${wikiResult.body[1]}
The caveat is that you need to retype all the keys again when you add a new value. Note, indentation is wrong in comment. Medium lacks proper tab support.
See a full answer posted here: https://stackoverflow.com/questions/65115945/data-manipulation-or-enrichment-in-cloud-workflows/65115946#65115946