Transform nested arrays

Hello
My problem is quite a common one (nested arrays), but I did not find the solution yet..
So sorry for asking this question once again, but I want to solve this !! :melting_face:

I basically want to transform this output :

To structure the data like this :

  • Additional ‘nice to have’ would be to collect only valid values (ie not the empty ones as shown above)

Currently I use a intermediate moduel (#11) which consumes a lot of operations (see blueprint). This module is used to collect a data I can not have directly from the aggregator.

Once again thanks for your assistance / advices.

Francois
blueprint (2).json (258.3 KB)

To do this, you can use the built-in function map —

Here is an example:

{{ map(1.array; destinataire.1.id) }}

For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew