Forum Discussion
jfpelletier - assuming this input document:
{"ids":["r4ige6rwgvnr","4nkmdoijydfj9","6ashbd99w3"]}
Configure a Mapper expression as follows:
Should provide the desired output. Take a look at the Array.map() documentation for description. The Javascript documentation linked in the SnapLogic documentation has some excellent details and examples. Basically the statement shown above is turning each string value in the array to an object.
- slaytanic705 years agoNew Contributor III
You can put a router after the directory browser with multiple outputs on it then attach the child pipeline reference to the output. The expression in the router does not require any code. Each file will go to a different output for processing.