This example take json file from source folder, split it based on json array’s elements to multiple payload, renamed then saved to multiple files in target folder. See below gif animation:

Input file:
Orders.txt

Output file: 2501.txt


Output file: 2502.txt


Output file: 2503.txt

The flow:


At “On New or Updated File” step, set read from Source folder, and post processing move to Archive folder.

The MIME Type set to ‘application/json’


At “For Each” step, Set to split by payload.Orders.


At “File Write” step, set write to Target folder, and set the output txt file name as payload.OrderID value.

🙂

Split Single File to Multiple File using For Each
Tagged on:         

Leave a Reply

Your email address will not be published. Required fields are marked *