Forum Discussion
Hi @Tanmay_Sarkar - this is a complex requirement. There are ways to have SnapLogic create multiple documents from a single document, but here you have multiple documents that need to first be analyzed and summarized to determine the total value, then split the “overflow” values into multiple documents. My recommendation is that you look into the Script snap and use the language of your choice (Javascript, Python, Ruby) to do this.
Thank you @koryknick
This makes sense. Depending on a script was definitely one of the options (and we managed to get this done with the help of a JavaScript).
Just thought to share this in the community and understand if there’s a way to get this done in SnapLogic directly.
Regards,
Tanmay
- pramisetti6 years agoNew Contributor II
Hello,
My suggestion rather than using tail snap use Group By N snap and keep the Group Size as 0. It will wait for all the documents which are processing in first pipeline and then you can map your object after Group By N something like $group.Date etc… and call the second process. - Jump6 years agoEmployee
I also use the Tail Snap to control the flow of the execution. Please share the setting of the second Pipeline Execute Snap. Do you have the “reuse” on? If so, the pipeline will start as soon as the main pipeline starts, but if the “reuse” is off, it should start when there is an input document getting into the Snap.