Forum Discussion

marenas's avatar
marenas
Contributor
2 years ago

Array manipulation

I can't figure out how to manipulate the input so that I can have the desired output. Attached is the scenario that I wanted to solve.

Here's what I tried:

- a Conditional snap (see attached) 
- in Mapper, $entity.Attributes.map(x=>x.extend({Value:$ram}))

But it updates all the elements in the array with property: Value (see attached). 

Thanks in advance.

2 Replies

  • marenas - can you provide a sample of your input data, and a corresponding example of your desired output?  Your screenshots are not very clear to understand your requirements.  CSV/JSON attachments work better than screenshots when supplying data so that someone can easily produce a working example pipeline for you.