I am trying to append a map to a map with the same Name in Mule Dataweave, but the the values are getting overwritten.
Just after this I am trying to map other values that I store in flow vars:
Basically, say if there are 11 records already populated in 010_HL_Loop
element through the 1st loop, I want the next loop to start from the 11th 10_HL_Loop
element and add other map elements to it.
Can you try with this snippet in dataweave
%dw 1.0
%output application/java
---
flatten (payload ++ flowVars.getVehicleInfo)
You need to make sure that both the payload and the flow variable are an array