12-03-2021 09:14 AM
I’m pretty new to snaplogic and would like some help with a requirement. I have JSON records where the parent is coming a separate record followed by child records as below:
I would like to bring the parent field value(locationId) into the child records. Is there an easy way to accomplish this?
Thanks
Solved! Go to Solution.
12-03-2021 02:38 PM
Hi @DeviK,
I’ve come to solution for your problem. Here is pipeline with the solution.
Community_Answer_2021_12_03.slp (9.1 KB)
Try it, see if it help you.
Regards,
12-03-2021 02:38 PM
Hi @DeviK,
I’ve come to solution for your problem. Here is pipeline with the solution.
Community_Answer_2021_12_03.slp (9.1 KB)
Try it, see if it help you.
Regards,
12-04-2021 08:19 AM
Thank you ! it works perfectly
12-04-2021 02:36 PM
Great solution @viktor_n! I had the same thought but you beat me to it. Here is an alternative solution which uses a few more snaps but uses less total memory if processing larger files since we won’t be pushing all of the data into a single document.
Parent record value into child records_2021_12_04.slp (15.3 KB)
Summary of steps: