Márton Kodok
Dec 2, 2020

--

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

--

--

Márton Kodok
Márton Kodok

Written by Márton Kodok

Speaker at conferences, a Google Developer Expert top user on Stackoverflow, software architect at REEA.net, co-founder IT Mures, life-long learner, mentor

No responses yet