Forum Discussion
I didn't notice before, but you don't want to have anything in the Multipart sub-type property. Clear that $ from the expression and uncheck the expression enabler.
aakumar - for simplicity I would solve this with 2 Mapper snaps. The first, configure as follows:
Note the use of Passthrough and the Mapping Root so we can work within the products array. Then we're using the Object.merge() method to pull the elements from the "bsn" array into the "products" array objects.
The second Mapper configured as below simply drops the "bsn" array from the products array.
Hope this helps!
aakumar You can also use use the AutoPrep Snap to flatten the incoming data hierarchy.. https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/2568781882/AutoPrep?src=search
@ Ruth Stento.
- jfpelletier2 years agoContributor
Hello again koryknick,
Thanks again, it worked this time! 🙂
The only change I made to your reply was to enabling the expression button for the "name" field and get the value from the passed list otherwise all my projects were labelled "name":
It's all good now, thanks a lot again for your help!
Kind regards,
JF
Related Content
- 2 years ago
- 2 years ago
- 3 years ago
- 4 years ago